5 # DC compilation options to produce unlinked objects
8 # DC compilation options to produce PIC objects
9 DC_SO_OPT := -relocation-model=pic
11 # DC option to tell where to store the output
12 DC_OUTPUT_OPTION = -of=$@
14 # Extra flags for the compiler
15 DCFLAGS := -O5 -release
21 # Link options to produce a shared library
22 LD_SO_OPT = -fPIC -shared -Wl,-soname,$@
24 # DC option to tell where to store the output
25 LD_OUTPUT_OPTION = -o $@
27 # Extra flags for the linker
41 # Make the GC shared object
42 cdgc.so: $(sources:.d=.o)
45 # General pattern rules
46 #######################
48 %.so: DCFLAGS += $(DC_SO_OPT)
51 $(if $V,,@echo ' $(LD) $@')
52 $(if $V,,@) $(LD) $(LDFLAGS) $(LD_SO_OPT) $(LD_OUTPUT_OPTION) $^
55 $(if $V,,@echo ' $(DC) $@')
56 $(if $V,,@) $(DC) $(DCFLAGS) $(DC_OBJ_OPT) $(DC_OUTPUT_OPTION) $<