Changeset 1165 for Daodan/src/makefile
- Timestamp:
- Oct 24, 2021, 4:51:14 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/makefile
r1163 r1165 2 2 SRC = 3 3 TARGET = ../build/ 4 DIST_TARGET = ../dist/00020DaodanWin 4 5 SUBFOLDERS = Patches beaengine 5 6 … … 16 17 17 18 FILES := _DLLInfo.rc $(foreach dir,. $(SUBFOLDERS),$(wildcard $(SRC)$(dir)/*.c)) 19 20 DIST_OUT = $(DIST_TARGET)/plain/win_only/binkw32.dll 21 DIST_FILES := $(DIST_TARGET)/Mod_Info.cfg \ 22 $(DIST_TARGET)/plain/win_only/realbink.dll \ 23 $(DIST_TARGET)/plain/win_only/run_full.bat \ 24 $(DIST_TARGET)/plain/win_only/run_wind.bat \ 25 $(DIST_OUT) 26 DIST = $(DIST_TARGET).zip 18 27 19 28 ################################################### … … 35 44 DEST = $(patsubst $(SRC)%.rc,$(TARGET)%.o,$(patsubst $(SRC)%.c,$(TARGET)%.o,$(FILES))) 36 45 37 ALL: $(DESTFOLDERS) $(DEST) $(OBJS) 46 all: $(OUT) 47 .PHONY: all 48 49 $(OUT): $(DESTFOLDERS) $(DEST) $(OBJS) 38 50 @echo "Linking" 39 51 $(LOCALE) $(GCC) $(LINKFLAGS) -o $(OUT) $(DEST) $(OBJS) $(LIBDIRS) $(LIBS) 40 52 41 53 clean: 42 rm -f $(DEST) 43 rm -Rf $(DESTFOLDERS) 44 rm -f $(OUT) 54 -rm -f $(DEST) 55 -rm -Rf $(DESTFOLDERS) 56 -rm -f $(OUT) 57 -rm -f $(DIST) $(DIST_OUT) 58 .PHONY: clean 45 59 46 60 $(DESTFOLDERS): … … 57 71 @echo 58 72 73 $(DIST): $(DIST_FILES) 74 bsdtar -acf $@ --strip-components 2 $(DIST_FILES) 75 76 $(DIST_OUT): $(OUT) 77 cp -f $< $@ 78 79 dist: $(DIST) 80 .PHONY: dist
Note:
See TracChangeset
for help on using the changeset viewer.