author | Volker Birk <vb@pep.foundation> |
Tue, 07 Aug 2018 14:24:15 +0200 | |
changeset 2803 | fadf1e8e22ff |
parent 2210 | 17c30881c885 |
child 2829 | e444c3c960bb |
permissions | -rw-r--r-- |
damiano@1960 | 1 |
# Copyright 2017, pEp Foundation |
damiano@1954 | 2 |
# This file is part of pEpEngine |
damiano@1954 | 3 |
# This file may be used under the terms of the GNU General Public License version 3 |
vb@1517 | 4 |
# see LICENSE.txt |
vb@1517 | 5 |
|
damiano@2210 | 6 |
include ../default.conf |
vb@628 | 7 |
|
damiano@1954 | 8 |
ALL_SOURCE=$(wildcard *.c) |
vb@637 | 9 |
ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE)) |
vb@637 | 10 |
|
vb@637 | 11 |
libasn1.a: $(ALL_OBJECTS) |
damiano@1954 | 12 |
ar -rc $@ $^ |
vb@637 | 13 |
|
damiano@1969 | 14 |
# "converter-sample.c" is the example file containing a "main()" function generated by ans1c. |
damiano@1954 | 15 |
.PHONY: generate |
vb@743 | 16 |
generate: Sync-Protocols.c |
vb@637 | 17 |
rm -f converter-sample.c |
vb@628 | 18 |
|
vb@628 | 19 |
%.o: %.c %.h |
damiano@1973 | 20 |
$(CC) $(CFLAGS) $(CFLAGS_GENERATED) -I. $(ASN1C_INC) -c $< -o $@ |
vb@628 | 21 |
|
damiano@1954 | 22 |
Sync-Protocols.c: pEp.asn1 devicegroup.asn1 protocols.asn1 |
damiano@1954 | 23 |
$(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=PEP.Message $^ |
vb@628 | 24 |
|
vb@628 | 25 |
.PHONY: clean |
vb@628 | 26 |
clean: |
vb@637 | 27 |
rm -f *.a *.o *.c *.h *.sample |
damiano@1919 | 28 |
|
damiano@1954 | 29 |
.PHONY: install |
damiano@1919 | 30 |
install: libasn1.a |
damiano@1919 | 31 |
cp $< $(PREFIX)/lib/ |
damiano@1950 | 32 |
|
damiano@1950 | 33 |
.PHONY: uninstall |
damiano@1950 | 34 |
uninstall: |
damiano@1954 | 35 |
rm -f $(PREFIX)/lib/libasn1.a |