asn.1/Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Wed, 04 Sep 2019 18:53:09 +0200
branchsync
changeset 4050 6608abc1ce8c
parent 3644 6fcb8a1e040a
child 4240 5c4a81487c18
permissions -rw-r--r--
merge heads
vb@2829
     1
# This file is under GNU General Public License 3.0
vb@1513
     2
# see LICENSE.txt
vb@1513
     3
damiano@3201
     4
include ../Makefile.conf
vb@628
     5
vb@2829
     6
ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
vb@637
     7
ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
vb@637
     8
vb@3454
     9
.PHONY: all clean install uninstall
vb@3454
    10
vb@3448
    11
all: Sync.c
damiano@3644
    12
	$(MAKE) libasn1.a
vb@2829
    13
vb@637
    14
libasn1.a: $(ALL_OBJECTS)
roker@3324
    15
	$(AR) -rc $@ $(ALL_OBJECTS)
vb@637
    16
vb@628
    17
%.o: %.c %.h
damiano@3195
    18
	$(CC) $(CFLAGS) $(OPTIMIZE) -I. $(ASN1C_INC) -c $< -o $@
vb@628
    19
vb@2829
    20
Sync.c: sync.asn1 keysync.asn1 pEp.asn1
vb@2899
    21
	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
vb@3448
    22
	rm -f converter-sample.c
damiano@3644
    23
	touch Sync.c
vb@2829
    24
vb@628
    25
clean:
vb@2829
    26
	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1
vb@2830
    27
vb@2830
    28
install:
vb@2830
    29
vb@2830
    30
uninstall:
vb@2830
    31
vb@3454
    32
tags: $(wildcard *.c) $(wildcard *.h)
vb@2871
    33
	ctags *.c *.h