asn.1/Makefile
author Volker Birk <vb@pep-project.org>
Sat, 06 Apr 2019 19:00:48 +0200
branchsync
changeset 3448 191306b90981
parent 3444 b02aedcd6a50
child 3454 cfc98ce474a5
permissions -rw-r--r--
simpler
     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 
     9 all: Sync.c
    10 	make libasn1.a
    11 
    12 libasn1.a: $(ALL_OBJECTS)
    13 	$(AR) -rc $@ $(ALL_OBJECTS)
    14 
    15 %.o: %.c %.h
    16 	$(CC) $(CFLAGS) $(OPTIMIZE) -I. $(ASN1C_INC) -c $< -o $@
    17 
    18 Sync.c: sync.asn1 keysync.asn1 pEp.asn1
    19 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
    20 	rm -f converter-sample.c
    21 
    22 sync.asn1 keysync.asn1 pEp.asn1:
    23 	cp -f ../sync/generated/*.asn1 ../asn.1
    24 
    25 .PHONY: clean uninstall tags
    26 
    27 clean:
    28 	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1
    29 
    30 install:
    31 
    32 uninstall:
    33 
    34 tags:
    35 	ctags *.c *.h