rnd-20030104-1-src
[rocksndiamonds.git] / src / Makefile
index ad10d1fea9d186bbe6456f27d52b9dc0e07761d0..12baa00ad9394378ccf09089bba3add8bb70ae0b 100644 (file)
@@ -49,7 +49,6 @@ PLATFORM = unix
 endif
 
 ifeq ($(PLATFORM),macosx)
-# PROGNAME = ../Rocks\'n\'Diamonds.app/Contents/MacOS/$(PROGBASE)
 PLATFORM = unix
 TARGET=sdl
 endif
@@ -123,6 +122,8 @@ LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm
 
 
 SRCS = main.c          \
+       conf_gfx.c      \
+       conf_snd.c      \
        init.c          \
        config.c        \
        events.c        \
@@ -137,6 +138,8 @@ SRCS =      main.c          \
        netserv.c
 
 OBJS = main.o          \
+       conf_gfx.o      \
+       conf_snd.o      \
        init.o          \
        config.o        \
        events.o        \
@@ -172,7 +175,16 @@ libgame_dir:
 $(LIBGAME):
        @$(MAKE) -C $(LIBDIR)
 
-$(TIMESTAMP_FILE): $(SRCS)
+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 --custom   > conf_cus.c
+
+conf_snd.h: conf_snd.c
+       ../Scripts/create_element_defs.pl --sounds   > conf_snd.h
+
+$(TIMESTAMP_FILE): $(SRCS) $(LIBGAME)
        @date '+"[%Y-%m-%d %H:%M]"' \
        | sed -e 's/^/#define COMPILE_DATE_STRING /' \
        > $(TIMESTAMP_FILE)