AR = ar
RANLIB = ranlib
ETAGS = etags
+STRIP = strip
RM = rm -f
CONVERT = convert
ifeq ($(TARGET),sdl2) # compiling for SDL2 target
SDL_LIBS = -lSDL2_image -lSDL2_mixer -lSDL2_net
SYS_CFLAGS := -DTARGET_SDL2 $(shell sdl2-config --cflags)
-SYS_LDFLAGS := $(SDL_LIBS) $(shell sdl2-config --libs)
+SYS_LDFLAGS := $(SDL_LIBS) $(shell sdl2-config --libs) -lm -lz
endif
endif
CFLAGS = $(OPTIONS) $(SYS_CFLAGS) $(EXTRA_CFLAGS) $(CONFIG)
-LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm -lz
+LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS)
SRCS = main.c \
$(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(COMMIT_HASH_FILE) $(OBJS) $(ICON)
$(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
ifdef BUILD_DIST
- strip $(PROGNAME)
+ $(STRIP) $(PROGNAME)
endif
libgame_dir: