equal
deleted
inserted
replaced
248 ifndef REV_NUMBER |
248 ifndef REV_NUMBER |
249 REV_NUMBER:=0 |
249 REV_NUMBER:=0 |
250 endif |
250 endif |
251 |
251 |
252 # MorphOS needs builddate |
252 # MorphOS needs builddate |
253 BUILDDATE=`date +%d.%m.%y` |
253 BUILDDATE=$(shell date +%d.%m.%y) |
254 |
254 |
255 # AMD64 needs a little more settings to work |
255 # AMD64 needs a little more settings to work |
256 ifeq ($(shell uname -m), x86_64) |
256 ifeq ($(shell uname -m), x86_64) |
257 endwarnings:=endwarnings |
257 endwarnings:=endwarnings |
258 64_bit_warnings:=64_bit_warnings |
258 64_bit_warnings:=64_bit_warnings |
371 endif |
371 endif |
372 |
372 |
373 # SDL config |
373 # SDL config |
374 ifdef WITH_SDL |
374 ifdef WITH_SDL |
375 CDEFS += -DWITH_SDL |
375 CDEFS += -DWITH_SDL |
376 CFLAGS += `$(SDL-CONFIG) --cflags` |
376 CFLAGS += $(shell $(SDL-CONFIG) --cflags) |
377 ifdef STATIC |
377 ifdef STATIC |
378 LIBS += `$(SDL-CONFIG) --static-libs` |
378 LIBS += $(shell $(SDL-CONFIG) --static-libs) |
379 else |
379 else |
380 LIBS += `$(SDL-CONFIG) --libs` |
380 LIBS += $(shell $(SDL-CONFIG) --libs) |
381 endif |
381 endif |
382 endif |
382 endif |
383 |
383 |
384 |
384 |
385 # zlib config |
385 # zlib config |
422 CDEFS += -DWITH_PNG |
422 CDEFS += -DWITH_PNG |
423 # FreeBSD doesn't use libpng-config |
423 # FreeBSD doesn't use libpng-config |
424 ifdef FREEBSD |
424 ifdef FREEBSD |
425 LIBS += -lpng |
425 LIBS += -lpng |
426 else |
426 else |
427 CFLAGS += `libpng-config --cflags` |
427 CFLAGS += $(shell libpng-config --cflags) |
428 |
428 |
429 # seems like older libpng versions are broken and need this |
429 # seems like older libpng versions are broken and need this |
430 PNGCONFIG_FLAGS = --ldflags --libs |
430 PNGCONFIG_FLAGS = --ldflags --libs |
431 ifdef STATIC |
431 ifdef STATIC |
432 ifdef OSX |
432 ifdef OSX |
433 # Seems like we need a tiny hack for OSX static to work |
433 # Seems like we need a tiny hack for OSX static to work |
434 LIBS += `libpng-config --prefix`/lib/libpng.a |
434 LIBS += $(shell libpng-config --prefix)/lib/libpng.a |
435 else |
435 else |
436 LIBS += `libpng-config --static $(PNGCONFIG_FLAGS)` |
436 LIBS += $(shell libpng-config --static $(PNGCONFIG_FLAGS)) |
437 endif |
437 endif |
438 else |
438 else |
439 LIBS += `libpng-config --L_opts $(PNGCONFIG_FLAGS)` |
439 LIBS += $(shell libpng-config --L_opts $(PNGCONFIG_FLAGS)) |
440 endif |
440 endif |
441 endif |
441 endif |
442 endif |
442 endif |
443 |
443 |
444 # enables/disables assert() |
444 # enables/disables assert() |