asn.1/Makefile
author Volker Birk <vb@pep-project.org>
Wed, 29 May 2019 11:37:30 +0200
branchsync
changeset 3764 86b50fe25671
parent 3644 6fcb8a1e040a
child 4240 5c4a81487c18
permissions -rw-r--r--
not a good idea after group keys are there
     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 .PHONY: all clean install uninstall
    10 
    11 all: Sync.c
    12 	$(MAKE) libasn1.a
    13 
    14 libasn1.a: $(ALL_OBJECTS)
    15 	$(AR) -rc $@ $(ALL_OBJECTS)
    16 
    17 %.o: %.c %.h
    18 	$(CC) $(CFLAGS) $(OPTIMIZE) -I. $(ASN1C_INC) -c $< -o $@
    19 
    20 Sync.c: sync.asn1 keysync.asn1 pEp.asn1
    21 	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
    22 	rm -f converter-sample.c
    23 	touch Sync.c
    24 
    25 clean:
    26 	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1
    27 
    28 install:
    29 
    30 uninstall:
    31 
    32 tags: $(wildcard *.c) $(wildcard *.h)
    33 	ctags *.c *.h