X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=7c897097c3e0d525657834d0daaf69224d575b91;hb=632b8ce3e7c946dc6d5e9d1f93a1a8dcb38e510c;hp=c73420b79b3669627f21f723874745e074b09874;hpb=2fc3381a6d44fe617388ac019170910e337bb07e;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index c73420b7..7c897097 100644 --- a/src/Makefile +++ b/src/Makefile @@ -122,6 +122,8 @@ LDFLAGS = $(SYS_LDFLAGS) $(EXTRA_LDFLAGS) -lm SRCS = main.c \ + conf_gfx.c \ + conf_snd.c \ init.c \ config.c \ events.c \ @@ -136,6 +138,8 @@ SRCS = main.c \ netserv.c OBJS = main.o \ + conf_gfx.o \ + conf_snd.o \ init.o \ config.o \ events.o \ @@ -171,7 +175,15 @@ 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 + +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)