FLAGS = $$(pkg-config --cflags glib-2.0) -W -Wall -Wno-pointer-sign -g $(CFLAGS) CC = gcc all: conf-update config.o: config.c conf-update.h $(CC) $(FLAGS) -c config.c core.o: core.c conf-update.h $(CC) $(FLAGS) -c core.c helpers.o: helpers.c conf-update.h $(CC) $(FLAGS) -c helpers.c conf-update.o: conf-update.c conf-update.h $(CC) $(FLAGS) -c conf-update.c index.o: index.c conf-update.h $(CC) $(FLAGS) -c index.c modified.o: conf-update.h modified.c $(CC) $(FLAGS) -c modified.c conf-update.h: core.h helpers.h index.h modified.h config.h conf-update: core.o helpers.o conf-update.o index.o modified.o config.o $(CC) $(LDFLAGS) -o conf-update config.o core.o helpers.o conf-update.o index.o modified.o $$(pkg-config --libs glib-2.0) -lncurses -lmenu -lcrypto .PHONY: clean clean: rm -f *.o rm -f conf-update