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

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

Revision 1.2, Tue Apr 19 03:49:23 2011 UTC (13 years, 2 months ago) by yason
Branch: MAIN
CVS Tags: ufoai_2-3-1
Changes since 1.1: +14 -7 lines

switch to autoconf-2.67, more verbose build

$OpenBSD$
--- build/client.mk.orig	Mon Nov 29 19:46:35 2010
+++ build/client.mk	Mon Apr 18 16:03:49 2011
@@ -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 \
@@ -344,18 +344,15 @@ endif
 
 # Say how to link the exe
 $(CLIENT_TARGET): $(CLIENT_OBJS)
-	@echo " * [UFO] ... linking $(LNKFLAGS) ($(CLIENT_LIBS) $(SDL_LIBS))"; \
-		$(CC) $(LDFLAGS) -o $@ $(CLIENT_OBJS) $(LNKFLAGS) $(CLIENT_LIBS) $(SDL_LIBS)
+	$(CC) $(LDFLAGS) -o $@ $(CLIENT_OBJS) $(LNKFLAGS) $(CLIENT_LIBS) $(SDL_LIBS)
 
 # 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