X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2FMakefile;h=ff28877633b2b653aa14aa87f2e396da2af41c55;hb=9a1ccc76e3542f3974103e505b27fc1879f0f777;hp=f0d9c3ed8fda5e024402ae2e46fe02b9423d9e23;hpb=91d08fad2fcec7e2b5931b4f336a89d14af313dd;p=rocksndiamonds.git diff --git a/src/Makefile b/src/Makefile index f0d9c3ed..ff288776 100644 --- a/src/Makefile +++ b/src/Makefile @@ -64,6 +64,7 @@ TARGET = allegro endif ifeq ($(PLATFORM),cross-win32) +EXTRA_LDFLAGS = -lshfolder PROGNAME = ../$(PROGBASE).exe TARGET = sdl endif @@ -102,11 +103,12 @@ CONFIG_GAME_DIR = $(CONFIG_RO_GAME_DIR) $(CONFIG_RW_GAME_DIR) CONFIG = $(CONFIG_GAME_DIR) $(CONFIG_SCORE_ENTRIES) $(JOYSTICK) -DEBUG = -DDEBUG -g +# DEBUG = -DDEBUG -g # 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 @@ -153,6 +155,19 @@ OBJS = main.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 @@ -175,15 +190,17 @@ libgame_dir: $(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 - ../Scripts/create_element_defs.pl --gfx > conf_gfx.h - ../Scripts/create_element_defs.pl --chr > conf_chr.c - ../Scripts/create_element_defs.pl --cus > conf_cus.c - ../Scripts/create_element_defs.pl --e2g > conf_e2g.c - ../Scripts/create_element_defs.pl --esg > conf_esg.c + @$(MAKE) auto-conf conf_snd.h: conf_snd.c - ../Scripts/create_element_defs.pl --snd > conf_snd.h + @$(MAKE) auto-conf $(TIMESTAMP_FILE): $(SRCS) $(LIBGAME) @date '+"[%Y-%m-%d %H:%M]"' \