out = gpgedit CCOPTS = --std=gnu99 -Wall all: if [ ! -d obj ]; then mkdir obj; fi cc $(CCOPTS) $(DBG) -c src/strll.c -o obj/strll.o cc $(CCOPTS) $(DBG) -c src/logger.c -o obj/logger.o cc $(CCOPTS) $(DBG) -lgpgme -c src/gpgedit_config.c -o obj/gpgedit_config.o cc $(CCOPTS) $(DBG) -lgpgme -c src/gpg.c -o obj/gpg.o cc $(CCOPTS) $(DBG) -lgpgme obj/*.o src/main.c -o $(out) debug: make all DBG=-g clean: if [ -d obj ]; then rm -f obj/*; fi