sirc

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

makefile (380B)


      1 CC      = cc
      2 CFLAGS  = -std=c99 -Wall -Wextra -Wpedantic -O2
      3 LDFLAGS = -lncurses -lpthread -lssl -lcrypto
      4 
      5 TARGET  = sirc
      6 SRC     = sirc.c
      7 
      8 .PHONY: all clean install
      9 
     10 all: $(TARGET)
     11 
     12 $(TARGET): $(SRC)
     13 	$(CC) $(CFLAGS) -std=gnu99 -o $@ $^ $(LDFLAGS)
     14 
     15 clean:
     16 	rm -f $(TARGET)
     17 
     18 install: $(TARGET)
     19 	install -Dm755 $(TARGET) $(DESTDIR)$(PREFIX)/bin/$(TARGET)
     20 
     21 PREFIX ?= $(HOME)/.local