p≡p engine fork for my own dirty testing of stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1004 B

3 years ago
6 years ago
3 years ago
6 years ago
2 years ago
6 years ago
3 years ago
6 years ago
6 years ago
6 years ago
6 years ago
3 years ago
3 years ago
3 years ago
6 years ago
3 years ago
2 years ago
3 years ago
  1. # This file is under GNU General Public License 3.0
  2. # see LICENSE.txt
  3. include ../Makefile.conf
  4. ALL_SOURCE=$(subst $(NO_SOURCE),,$(wildcard *.c))
  5. ALL_OBJECTS=$(subst .c,.o,$(ALL_SOURCE))
  6. CPPFLAGS+=$(CPPFLAGS_GENERATED)
  7. ASN1C_INC+= -I.
  8. .PHONY: all clean install uninstall
  9. all: Sync.c Distribution.c
  10. $(MAKE) libasn1.a
  11. libasn1.a: $(ALL_OBJECTS)
  12. $(AR) -rc $@ $(ALL_OBJECTS)
  13. %.o: %.c %.h
  14. $(CC) $(CFLAGS) $(CPPFLAGS) $(OPTIMIZE) $(ASN1C_INC) -c $< -o $@
  15. Sync.c: sync.asn1 keysync.asn1 pEp.asn1
  16. $(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keysync.asn1 $<
  17. rm -f converter-sample.c
  18. touch Sync.c
  19. Distribution.c: distribution.asn1 keyreset.asn1 pEp.asn1
  20. $(ASN1C) -gen-PER -fincludes-quoted -fcompound-names -pdu=auto pEp.asn1 keyreset.asn1 $<
  21. rm -f converter-sample.c
  22. touch Distribution.c
  23. clean:
  24. rm -f *.a *.o *.c *.h *.sample sync.asn1 keysync.asn1 distribution.asn1 keyreset.asn1
  25. install:
  26. uninstall:
  27. tags: $(wildcard *.c) $(wildcard *.h)
  28. ctags --sort=yes *.c *.h