3 CFLAGS_DEBUG_ARM = -O0 -gdwarf-2 -arch armv6
4 CFLAGS_RELEASE_ARM = -arch armv6 -Os -gdwarf-2 -Wuninitialized -DNDEBUG
5 CFLAGS_DEBUG_EMU = -O0 -gdwarf-2 -DDEBUG
6 CFLAGS_RELEASE_EMU = -gdwarf-2 -Os -Wuninitialized -DNDEBUG
8 WFLAGS = -Wno-trigraphs -Werror -Wunused-function \
9 -Wunused-label -Wunused-variable -Wunknown-pragmas \
10 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas \
13 CFLAGS = --std=c99 -pipe \
14 -fpascal-strings -fasm-blocks -fmessage-length=0 \
15 $(WFLAGS) $(CFLAGS_$(CONFIG))
17 LDFLAGS := -Wl,-dylib -Wl,-dead_strip -Wl,-exported_symbols_list lib/security_asn1.exp
21 HEADER_PATHS := . .. ../libDER
22 CFLAGS += $(addprefix -I$(include),$(HEADER_PATHS))
28 lib/SecAsn1Templates.c \
31 lib/certExtensionTemplates.c \
36 lib/osKeyTemplates.c \
37 lib/pkcs12Templates.c \
38 lib/pkcs7Templates.c \
52 lib/SecAsn1Templates.h \
62 lib/certExtensionTemplates.h \
71 lib/osKeyTemplates.h \
72 lib/pkcs7Templates.h \
73 lib/pkcs12Templates.h \
77 INTERNAL_HEADERS = lib/plarenas.h lib/plstr.h lib/prbit.h lib/prcpucfg.h lib/prcvar.h lib/prenv.h \
78 lib/prerr.h lib/prerror.h lib/prinrval.h lib/prlock.h lib/prlog.h lib/prlong.h lib/prmem.h lib/prmon.h \
79 lib/protypes.h lib/prthread.h lib/prtime.h lib/prtypes.h lib/prvrsion.h lib/secasn1.h lib/seccomon.h \
80 lib/secerr.h lib/secport.h
82 OBJECTS := $(SOURCES:.c=.o)
84 all: install-headers build
86 install-headers: $(PUBLIC_HEADERS) $(PRIVATE_HEADERS) $(INTERNAL_HEADERS)
88 @install -d security_asn1
89 @install -m 0444 $(PUBLIC_HEADERS) $(PRIVATE_HEADERS) Security
90 @install -m 0444 $(INTERNAL_HEADERS) security_asn1
93 $(CC) $(CFLAGS) $(LDFLAGS) -dynamiclib -dynamic -compatibility_version 0 -current_version 0 -install_name libasn1.dylib -o libasn1.dylib $(OBJECTS)
96 @rm -f $(OBJECTS) $(PROGNAME)
98 tags: $(SOURCES) $(PROG)