Mercurial > hg > demos > bussi
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 |
rev | line source |
---|---|
0 | 1 # |
2 # Generic build target | |
3 # | |
26 | 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 | 6 |
7 export DMLIB | |
19 | 8 export BINPATH |
0 | 9 |
19 | 10 linux-bin: |
37 | 11 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile BINEXT=-linux.bin |
0 | 12 |
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 | 15 OBJPATH=$(BPATH)/obj/win32/ \ |
0 | 16 MINGW_PREFIX=i686-w64-mingw32- \ |
17 MINGW_PATH=/usr/i686-w64-mingw32 | |
18 | |
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 | 21 OBJPATH=$(BPATH)/obj/win64/ \ |
0 | 22 MINGW_PREFIX=x86_64-w64-mingw32- \ |
23 MINGW_PATH=/usr/x86_64-w64-mingw32 | |
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 | 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 | 51 strip $(BINPATH)/*.bin $(BINPATH)/*.exe |
19 | 52 $(RM) $(PACKAGE) |
33 | 53 cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) |
25 | 54 cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) * |
19 | 55 |
56 | |
0 | 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 | 59 -$(MAKE) -f $(DMLIB)Makefile clean BINEXT=-linux.bin |
0 | 60 -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean |
61 |