annotate Makefile @ 37:dc514b8d8cdd default tip

s/EXEEXT/BINEXT/g
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Dec 2019 18:22:11 +0200
parents 2239a5ccf827
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Generic build target
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
26
288e688aaac3 Build system improvements.
Matti Hamalainen <ccr@tnsp.org>
parents: 25
diff changeset
4 include config.mak
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
5 MAKEOPTS=-j4
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 export DMLIB
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
8 export BINPATH
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
10 linux-bin:
37
dc514b8d8cdd s/EXEEXT/BINEXT/g
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
11 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile BINEXT=-linux.bin
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 mingw-win32:
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
14 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile.cross-mingw \
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
15 OBJPATH=$(BPATH)/obj/win32/ \
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 MINGW_PREFIX=i686-w64-mingw32- \
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 MINGW_PATH=/usr/i686-w64-mingw32
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 mingw-win64:
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
20 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile.cross-mingw \
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
21 OBJPATH=$(BPATH)/obj/win64/ \
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 MINGW_PREFIX=x86_64-w64-mingw32- \
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 MINGW_PATH=/usr/x86_64-w64-mingw32
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
25 $(DATA_PKG): $(wildcard $(BPATH)/data/*)
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
26 cd $(BPATH)/data && $(TOOL_BINPATH)packed create $@ -x \*~ -v *
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
27
30
e53990e89a52 Add build targets "tools" and "data".
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
28 tools:
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
29 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
30 DM_CONFIG=no \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
31 TOOL_BINPATH=$(TOOL_BINPATH) \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
32 OBJPATH=$(DMLIB)/obj/unix/ \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
33 DM_BUILD_TESTS=no \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
34 DM_BUILD_TOOLS=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
35 DM_USE_TIMELINE=no \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
36 DM_BUILD_EDITOR=no \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
37 DM_USE_C=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
38 DM_USE_SIMD=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
39 DM_USE_PACKFS=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
40 DM_USE_STDIO=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
41 DM_USE_MEMIO=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
42 JSS=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
43 JSS_SUP_XM=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
44 JSS_SUP_JSSMOD=yes \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
45 JSSMOD_FLAGS="-DJM_SUP_PATMODE_ALL -DJM_SUP_EXT_INSTR -DJM_SUP_INSTR -DJM_SUP_SAMPLES" \
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
46 JSS_SUP_THREADS=yes
30
e53990e89a52 Add build targets "tools" and "data".
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
47
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
48 data: tools $(DATA_PKG)
30
e53990e89a52 Add build targets "tools" and "data".
Matti Hamalainen <ccr@tnsp.org>
parents: 27
diff changeset
49
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
50 package: linux-bin mingw-win32 $(DATA_PKG)
20
07316b0cdace Strip binaries.
Matti Hamalainen <ccr@tnsp.org>
parents: 19
diff changeset
51 strip $(BINPATH)/*.bin $(BINPATH)/*.exe
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
52 $(RM) $(PACKAGE)
33
18d1d8d26a18 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents: 30
diff changeset
53 cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH)
25
9830a8be6eba Fix quotation.
Matti Hamalainen <ccr@tnsp.org>
parents: 24
diff changeset
54 cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) *
19
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
55
da7ac3f7d014 Work on build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 3
diff changeset
56
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
57 clean:
35
2239a5ccf827 Fixes to the build system (Makefile etc.)
Matti Hamalainen <ccr@tnsp.org>
parents: 33
diff changeset
58 -$(RM) $(DATA_PKG)
37
dc514b8d8cdd s/EXEEXT/BINEXT/g
Matti Hamalainen <ccr@tnsp.org>
parents: 35
diff changeset
59 -$(MAKE) -f $(DMLIB)Makefile clean BINEXT=-linux.bin
0
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
60 -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean
f339a3903bc9 Initial import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
61