Makefile (304B)
1 OBJS := $(patsubst %.c,%.o,$(filter-out main.c,$(wildcard *.c))) 2 INCLUDES := -I.. -I../aux/include 3 CFLAGS += $(INCLUDES) -Wall 4 LIBS := `pkg-config --libs libtasn1` -L../aux/lib -llash 5 6 LDFLAGS += $(LIBS) 7 8 %.o: %.c 9 $(CC) $(CFLAGS) -c $< -o $@ $(LDFLAGS) 10 11 all: $(OBJS) 12 13 clean: 14 rm -vf *.o 15 16 .PHONY: clean