asn.1/Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 29 Oct 2020 22:28:23 +0100
branchdoxygen_doc
changeset 5169 f4b476b218e4
parent 4446 e2275b8e4c3d
child 4584 2185248904dd
child 4606 7021f6c5b8cd
child 5137 f5e140d16c05
permissions -rw-r--r--
changes to documentation for sync generation (not yet complete)
     1 # This file is under GNU General Public License 3.0
     2 # see LICENSE.txt
     3 
     4 include ../Makefile.conf
     5 
     6 ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
     7 ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
     8 CPPFLAGS+=$(CFLAGS_GENERATED)
     9 ASN1C_INC+= -I.
    10 
    11 .PHONY: all clean install uninstall
    12 
    13 all: Sync.c Distribution.c
    14 	$(MAKE) libasn1.a
    15 
    16 libasn1.a: $(ALL_OBJECTS)
    17 	$(AR) -rc $@ $(ALL_OBJECTS)
    18 
    19 %.o: %.c %.h
    20 	$(CC) $(CPPFLAGS) $(CFLAGS) $(OPTIMIZE) $(ASN1C_INC) -c $< -o $@
    21 
    22 Sync.c: sync.asn1 keysync.asn1 pEp.asn1
    23 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
    24 	rm -f converter-sample.c
    25 	touch Sync.c
    26 
    27 Distribution.c: distribution.asn1 keyreset.asn1 pEp.asn1
    28 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 $<
    29 	rm -f converter-sample.c
    30 	touch Distribution.c
    31 
    32 clean:
    33 	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1 distribution.asn1 keyreset.asn1
    34 
    35 install:
    36 
    37 uninstall:
    38 
    39 tags: $(wildcard *.c) $(wildcard *.h)
    40 	ctags --sort=yes *.c *.h