Makefile.darwin (libtimidity-0.2.6) | : | Makefile.darwin (libtimidity-0.2.7) | ||
---|---|---|---|---|
skipping to change at line 29 | skipping to change at line 29 | |||
CPPFLAGS=-DTIMIDITY_BUILD | CPPFLAGS=-DTIMIDITY_BUILD | |||
LDLIBS= | LDLIBS= | |||
# to build a debug version : | # to build a debug version : | |||
#CPPFLAGS+= -DTIMIDITY_DEBUG | #CPPFLAGS+= -DTIMIDITY_DEBUG | |||
# compiler flags | # compiler flags | |||
CFLAGS=-O2 -Wall | CFLAGS=-O2 -Wall | |||
CFLAGS+=-fno-common -ffast-math | CFLAGS+=-fno-common -ffast-math | |||
CFLAGS+=-fvisibility=hidden -DSYM_VISIBILITY | CFLAGS+=-fvisibility=hidden -DSYM_VISIBILITY | |||
#CFLAGS+=-g | #CFLAGS+=-g | |||
LDFLAGS =-Wl,-single_module | LDFLAGS =-dynamiclib -Wl,-single_module | |||
LDFLAGS+=-Wl,-undefined,error | ||||
LDFLAGS+=-Wl,-install_name,"@executable_path/$(LIBSHARED)" | LDFLAGS+=-Wl,-install_name,"@executable_path/$(LIBSHARED)" | |||
LDFLAGS+=-Wl,-compatibility_version,3.0 -Wl,-current_version,3.0 | LDFLAGS+=-Wl,-compatibility_version,3.0 -Wl,-current_version,3.1 | |||
# specifically for 10.5 and newer: | # specifically for 10.5 and newer: | |||
#CFLAGS+=-mmacosx-version-min=10.5 | #CFLAGS+=-mmacosx-version-min=10.5 | |||
#LDFLAGS+=-mmacosx-version-min=10.5 | #LDFLAGS+=-mmacosx-version-min=10.5 | |||
# specifically for 10.6 and newer: | # specifically for 10.6 and newer: | |||
#CFLAGS+=-mmacosx-version-min=10.6 | #CFLAGS+=-mmacosx-version-min=10.6 | |||
#LDFLAGS+=-mmacosx-version-min=10.6 -Wl,-lbundle1.o | #LDFLAGS+=-mmacosx-version-min=10.6 -Wl,-lbundle1.o | |||
COMPILE=$(CC) $(CFLAGS) $(CPPFLAGS) -I. -c | COMPILE=$(CC) $(CFLAGS) $(CPPFLAGS) -I. -c | |||
skipping to change at line 68 | skipping to change at line 69 | |||
@echo " $(MAKE) static : build libtimidity.a static library" | @echo " $(MAKE) static : build libtimidity.a static library" | |||
@echo "" | @echo "" | |||
clean: | clean: | |||
rm -f $(LIBSHARED) $(LIBSTATIC) *.o | rm -f $(LIBSHARED) $(LIBSTATIC) *.o | |||
dylib: $(LIBSHARED) | dylib: $(LIBSHARED) | |||
static: $(LIBSTATIC) | static: $(LIBSTATIC) | |||
$(LIBSHARED): $(OBJ) | $(LIBSHARED): $(OBJ) | |||
$(CC) -dynamiclib -o $(LIBSHARED) $(OBJ) $(LDFLAGS) $(LDLIBS) | $(CC) -o $(LIBSHARED) $(OBJ) $(LDFLAGS) $(LDLIBS) | |||
$(LIBSTATIC): $(OBJ) | $(LIBSTATIC): $(OBJ) | |||
$(AR) $(ARFLAGS) $@ $(OBJ) | $(AR) $(ARFLAGS) $@ $(OBJ) | |||
$(RANLIB) $@ | $(RANLIB) $@ | |||
.c.o: | .c.o: | |||
$(COMPILE) -o $@ $< | $(COMPILE) -o $@ $< | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added |