summaryrefslogtreecommitdiff
path: root/c/Makefile
blob: 126e76e26a07359ae46c17d9e413e4c9bd97e8f5 (plain)
    1 out = gpgsecure
    2 cc = cc
    3 
    4 std      = -std=gnu99
    5 warnings = -Wall -Wpedantic
    6 ccopts   = $(std) $(warnings)
    7 larchive = $(shell pkg-config --libs libarchive)
    8 
    9 all:
   10 	if [ ! -d obj ]; then mkdir obj; fi
   11 	$(cc) $(ccopts) $(dbg) $(larchive) -c src/encarchive.c -o obj/encarchive.o
   12 	$(cc) $(ccopts) $(dbg) $(larchive) src/main.c obj/*.o -o $(out)
   13 
   14 debug:
   15 	make dbg=-g

Generated by cgit