asn.1/Makefile
author Krista 'DarthMama' Bennett <krista@pep.foundation>
Thu, 04 Jun 2020 11:18:45 +0200
changeset 4729 3df9a2a67597
parent 4446 e2275b8e4c3d
child 4584 2185248904dd
child 4606 7021f6c5b8cd
child 5137 f5e140d16c05
permissions -rw-r--r--
forgot test files
vb@2829
     1
# This file is under GNU General Public License 3.0
vb@1517
     2
# see LICENSE.txt
vb@1517
     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))
krista@4442
     8
CPPFLAGS+=$(CFLAGS_GENERATED)
krista@4446
     9
ASN1C_INC+= -I.
vb@637
    10
vb@3454
    11
.PHONY: all clean install uninstall
vb@3454
    12
vb@4255
    13
all: Sync.c Distribution.c
damiano@3644
    14
	$(MAKE) libasn1.a
vb@2829
    15
vb@637
    16
libasn1.a: $(ALL_OBJECTS)
roker@3324
    17
	$(AR) -rc $@ $(ALL_OBJECTS)
vb@637
    18
vb@628
    19
%.o: %.c %.h
krista@4446
    20
	$(CC) $(CPPFLAGS) $(CFLAGS) $(OPTIMIZE) $(ASN1C_INC) -c $< -o $@
vb@628
    21
vb@2829
    22
Sync.c: sync.asn1 keysync.asn1 pEp.asn1
vb@2899
    23
	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
vb@3448
    24
	rm -f converter-sample.c
damiano@3644
    25
	touch Sync.c
vb@2829
    26
vb@4255
    27
Distribution.c: distribution.asn1 keyreset.asn1 pEp.asn1
vb@4255
    28
	$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 $<
vb@4255
    29
	rm -f converter-sample.c
vb@4255
    30
	touch Distribution.c
vb@4255
    31
vb@628
    32
clean:
vb@4295
    33
	rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1 distribution.asn1 keyreset.asn1
vb@2830
    34
vb@2830
    35
install:
vb@2830
    36
vb@2830
    37
uninstall:
vb@2830
    38
vb@3454
    39
tags: $(wildcard *.c) $(wildcard *.h)
vb@4240
    40
	ctags --sort=yes *.c *.h