[BACK]Return to patch-build_client_mk CVS log [TXT][DIR] Up to [local] / ports / games / ufoai / patches

File: [local] / ports / games / ufoai / patches / Attic / patch-build_client_mk (download)

Revision 1.3, Fri Sep 3 10:06:21 2010 UTC (13 years, 10 months ago) by yason
Branch: MAIN
Changes since 1.2: +20 -5 lines

update to 2.3, clean Makefile, move to new-style WANTLIB/LIB_DEPENDS

$OpenBSD$
--- build/client.mk.orig	Fri May 14 21:16:55 2010
+++ build/client.mk	Thu Sep  2 23:49:11 2010
@@ -301,7 +301,7 @@ ifeq ($(HARD_LINKED_GAME),1)
 	CLIENT_CFLAGS+=$(GAME_CFLAGS)
 endif
 
-ifneq ($(findstring $(TARGET_OS), netbsd freebsd linux-gnu),)
+ifneq ($(findstring $(TARGET_OS), netbsd freebsd openbsd linux-gnu),)
 	CLIENT_SRCS+= \
 		ports/linux/linux_main.c \
 		ports/unix/unix_console.c \
@@ -350,12 +350,12 @@ $(CLIENT_TARGET): $(CLIENT_OBJS)
 # Say how to build .o files from .c files for this module
 $(BUILDDIR)/client/%.o: $(SRCDIR)/%.c
 	@echo " * [UFO] $<"; \
-		$(CC) $(CFLAGS) $(CLIENT_CFLAGS) $(SDL_CFLAGS) -o $@ -c $< $(CFLAGS_M_OPTS)
+		$(CC) $(CPPFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(SDL_CFLAGS) -o $@ -c $< $(CFLAGS_M_OPTS)
 
 # Say how to build .o files from .m files for this module
 $(BUILDDIR)/client/%.o: $(SRCDIR)/%.m
 	@echo " * [UFO] $<"; \
-		$(CC) $(CFLAGS) $(CLIENT_CFLAGS) $(SDL_CFLAGS) -o $@ -c $< $(CFLAGS_M_OPTS)
+		$(CC) $(CPPFLAGS) $(CFLAGS) $(CLIENT_CFLAGS) $(SDL_CFLAGS) -o $@ -c $< $(CFLAGS_M_OPTS)
 
 ifeq ($(TARGET_OS),mingw32)
 # Say how to build .o files from .rc files for this module