projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup of game mode handling
[rocksndiamonds.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index 0f8c0997fe9dcff77db7005332cc9ce10e8a5f1a..9dcc3d95fedf237109fa91fa8000bb4e48b63fe7 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-117,6
+117,8
@@
OPTIONS = $(DEBUG) -Wall # only for debugging purposes
# OPTIONS = -O3
ifdef BUILD_DIST # distribution build
# OPTIONS = -O3
ifdef BUILD_DIST # distribution build
+SYS_LDFLAGS := $(shell echo $(SYS_LDFLAGS) | \
+ sed -e "s%-rpath,[^ ]*%-rpath,'\$$ORIGIN/lib'%")
OPTIONS = -O3 -Wall
endif
OPTIONS = -O3 -Wall
endif
@@
-214,6
+216,9
@@
all: $(AUTOCONF) libgame_dir game_em_dir game_sp_dir $(PROGNAME) graphics_dir
$(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
$(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
$(PROGNAME): $(RNDLIBS) $(TIMESTAMP_FILE) $(OBJS) $(ICON)
$(CC) $(PROFILING) $(OBJS) $(ICON) $(RNDLIBS) $(LDFLAGS) -o $(PROGNAME)
+strip: $(PROGNAME)
+ strip $(PROGNAME)
+
libgame_dir:
@$(MAKE) -C $(LIBGAME_DIR)
$(LIBGAME):
libgame_dir:
@$(MAKE) -C $(LIBGAME_DIR)
$(LIBGAME):
@@
-265,7
+270,7
@@
$(ICON):
$(CC) $(PROFILING) $(CFLAGS) -c $*.c
graphics_dir:
$(CC) $(PROFILING) $(CFLAGS) -c $*.c
graphics_dir:
- @
$(MAKE) -C $(GRAPHICS_DIR)
+ @
test -f $(GRAPHICS_DIR)/Makefile && $(MAKE) -C $(GRAPHICS_DIR) || true
clean-obj:
$(MAKE) -C $(LIBGAME_DIR) clean
clean-obj:
$(MAKE) -C $(LIBGAME_DIR) clean