asn.1/Makefile
author Volker Birk <vb@pep.foundation>
Thu, 09 Aug 2018 12:15:44 +0200
branchsync
changeset 2830 d6f044e43e1a
parent 2829 e444c3c960bb
child 2871 4593a7b8b6a8
permissions -rw-r--r--
...
     1 # This file is under GNU General Public License 3.0
     2 # see LICENSE.txt
     3 
     4 include ../default.conf
     5 
     6 ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
     7 ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
     8 
     9 all: generate
    10 	make libasn1.a
    11 
    12 libasn1.a: $(ALL_OBJECTS)
    13 	ar -rc $@ $(ALL_OBJECTS)
    14 
    15 generate: Sync.c
    16 	rm -f converter-sample.c
    17 
    18 %.o: %.c %.h
    19 	$(CC) $(CFLAGS) $(OPTIMIZE) -I. -I$(ASN1C_INC) -c $< -o $@
    20 
    21 Sync.c: sync.asn1 keysync.asn1 pEp.asn1
    22 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message pEp.asn1 keysync.asn1 $<
    23 
    24 sync.asn1 keysync.asn1 pEp.asn1:
    25 	cp -f ../sync/generated/*.asn1 ../asn.1
    26 
    27 .PHONY: clean install uninstall
    28 
    29 clean:
    30 	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1
    31 
    32 install:
    33 
    34 uninstall:
    35