projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030902-1-src
[rocksndiamonds.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index 16d13cf4912c08df081f3e66df912f6b3a05a506..595f5996acb4a4770dcf80e888de840d08f2ee3d 100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-64,6
+64,7
@@
TARGET = allegro
endif
ifeq ($(PLATFORM),cross-win32)
endif
ifeq ($(PLATFORM),cross-win32)
+EXTRA_LDFLAGS = -lshfolder
PROGNAME = ../$(PROGBASE).exe
TARGET = sdl
endif
PROGNAME = ../$(PROGBASE).exe
TARGET = sdl
endif
@@
-106,7
+107,8
@@
DEBUG = -DDEBUG -g
# PROFILING = $(PROFILING_FLAGS)
# OPTIONS = $(DEBUG) -Wall # only for debugging purposes
# PROFILING = $(PROFILING_FLAGS)
# OPTIONS = $(DEBUG) -Wall # only for debugging purposes
-OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes
+# OPTIONS = $(DEBUG) -O3 -Wall # only for debugging purposes
+OPTIONS = $(DEBUG) -Wall # only for debugging purposes
# OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes
# OPTIONS = -O3 -Wall -ansi -pedantic
# OPTIONS = -O3 -Wall
# OPTIONS = $(DEBUG) -Wall -ansi -pedantic # only for debugging purposes
# OPTIONS = -O3 -Wall -ansi -pedantic
# OPTIONS = -O3 -Wall
@@
-153,6
+155,19
@@
OBJS = main.o \
network.o \
netserv.o
network.o \
netserv.o
+CNFS = conf_gfx.h \
+ conf_snd.h \
+ conf_chr.c \
+ conf_chr.h \
+ conf_cus.c \
+ conf_cus.h \
+ conf_e2g.c \
+ conf_esg.c \
+ conf_e2s.c \
+ conf_fnt.c
+
+CNFS_CMD = ../Scripts/create_element_defs.pl
+
TIMESTAMP_FILE = conftime.h
LIBDIR = libgame
TIMESTAMP_FILE = conftime.h
LIBDIR = libgame
@@
-175,14
+190,17
@@
libgame_dir:
$(LIBGAME):
@$(MAKE) -C $(LIBDIR)
$(LIBGAME):
@$(MAKE) -C $(LIBDIR)
+auto-conf:
+ @for i in $(CNFS); do \
+ echo "$(CNFS_CMD) $$i > $$i"; \
+ $(CNFS_CMD) $$i > $$i; \
+ done
+
conf_gfx.h: conf_gfx.c
conf_gfx.h: conf_gfx.c
- ../Scripts/create_element_defs.pl --graphics > conf_gfx.h
- ../Scripts/create_element_defs.pl --el2gfx > conf_e2g.c
- ../Scripts/create_element_defs.pl --chars > conf_chr.c
- ../Scripts/create_element_defs.pl --generic > conf_gen.c
+ @$(MAKE) auto-conf
conf_snd.h: conf_snd.c
conf_snd.h: conf_snd.c
- ../Scripts/create_element_defs.pl --sounds > conf_snd.h
+ @$(MAKE) auto-conf
$(TIMESTAMP_FILE): $(SRCS) $(LIBGAME)
@date '+"[%Y-%m-%d %H:%M]"' \
$(TIMESTAMP_FILE): $(SRCS) $(LIBGAME)
@date '+"[%Y-%m-%d %H:%M]"' \