fixed Makefile issue on debian sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 21 Feb 2020 19:34:17 +0100
branchsync
changeset 4440286daefb04f1
parent 4434 629607a94d28
child 4441 4d00e7a28e67
fixed Makefile issue on debian
Makefile
asn.1/Makefile
     1.1 --- a/Makefile	Fri Feb 21 18:28:18 2020 +0100
     1.2 +++ b/Makefile	Fri Feb 21 19:34:17 2020 +0100
     1.3 @@ -52,8 +52,8 @@
     1.4  	$(MAKE) -C src clean
     1.5  	$(MAKE) -C test clean
     1.6  	$(MAKE) -C db clean
     1.7 +	$(MAKE) -C asn.1 clean
     1.8  	$(MAKE) -C sync clean
     1.9 -	$(MAKE) -C asn.1 clean
    1.10  
    1.11  tags:
    1.12  	$(MAKE) -C asn.1 tags
     2.1 --- a/asn.1/Makefile	Fri Feb 21 18:28:18 2020 +0100
     2.2 +++ b/asn.1/Makefile	Fri Feb 21 19:34:17 2020 +0100
     2.3 @@ -5,6 +5,7 @@
     2.4  
     2.5  ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
     2.6  ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
     2.7 +CPPFLAGS+=$(CFLAGS_GENERATED)
     2.8  
     2.9  .PHONY: all clean install uninstall
    2.10  
    2.11 @@ -15,7 +16,7 @@
    2.12  	$(AR) -rc $@ $(ALL_OBJECTS)
    2.13  
    2.14  %.o: %.c %.h
    2.15 -	$(CC) $(CFLAGS) $(OPTIMIZE) -I. $(ASN1C_INC) -c $< -o $@
    2.16 +	$(CC) $(CPPFLAGS) $(CFLAGS) $(OPTIMIZE) -I. -I$(ASN1C_INC) -c $< -o $@
    2.17  
    2.18  Sync.c: sync.asn1 keysync.asn1 pEp.asn1
    2.19  	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<