adding generation to Makefile
authorVolker Birk <vb@pep-project.org>
Thu, 12 May 2016 10:38:20 +0200
changeset 606cb3965eed567
parent 604 ba04c2bd81a1
child 607 52b16e047181
adding generation to Makefile
src/Makefile
     1.1 --- a/src/Makefile	Thu May 12 00:23:23 2016 +0200
     1.2 +++ b/src/Makefile	Thu May 12 10:38:20 2016 +0200
     1.3 @@ -52,12 +52,15 @@
     1.4  	$(error Unknown OpenPGP library : $(OPENPGP))
     1.5  endif
     1.6  
     1.7 -ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
     1.8 +ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c)) sync_fsm.c
     1.9  DEPENDS=$(subst .c,.d,$(ALL_SOURCE))
    1.10  ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
    1.11  
    1.12  all: $(TARGET)
    1.13  
    1.14 +sync_fsm.c: ../sync/sync.fsm
    1.15 +	make -C ../sync
    1.16 +
    1.17  %.d: %.c
    1.18  	@set -e; rm -f $@; \
    1.19  	$(CC) -MM $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$; \