Mercurial > hg > demos > krapula
annotate Makefile @ 69:f0b26daba6a9
Build adjustments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 29 Oct 2019 18:16:47 +0200 |
parents | e2415dd9b6b1 |
children | ce669d642363 |
rev | line source |
---|---|
0 | 1 # |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
2 # Generic build target |
0 | 3 # |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
4 include config.mak |
69 | 5 MAKEOPTS=-j4 |
0 | 6 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
7 export DMLIB |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
8 export BINPATH |
40
9cbb03e85597
Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
36
diff
changeset
|
9 |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
10 linux-bin: |
69 | 11 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile EXEEXT=-linux.bin |
40
9cbb03e85597
Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
36
diff
changeset
|
12 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
13 mingw-win32: |
69 | 14 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile.cross-mingw \ |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
15 OBJPATH=$(BPATH)/obj/win32/ \ |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
16 MINGW_PREFIX=i686-w64-mingw32- \ |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
17 MINGW_PATH=/usr/i686-w64-mingw32 |
0 | 18 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
19 mingw-win64: |
69 | 20 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile.cross-mingw \ |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
21 OBJPATH=$(BPATH)/obj/win64/ \ |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
22 MINGW_PREFIX=x86_64-w64-mingw32- \ |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
23 MINGW_PATH=/usr/x86_64-w64-mingw32 |
0 | 24 |
69 | 25 $(DATA_PKG): $(wildcard $(BPATH)/data/*) |
26 cd $(BPATH)/data && $(TOOL_BINPATH)packed create $@ -x \*~ -v * | |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
27 |
66
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
28 tools: |
69 | 29 $(MAKE) $(MAKEOPTS) -f $(DMLIB)Makefile \ |
30 DM_CONFIG=no \ | |
31 TOOL_BINPATH=$(TOOL_BINPATH) \ | |
32 OBJPATH=$(DMLIB)/obj/unix/ \ | |
33 DM_BUILD_TESTS=no \ | |
34 DM_BUILD_TOOLS=yes \ | |
35 DM_USE_TIMELINE=no \ | |
36 DM_BUILD_EDITOR=no \ | |
37 DM_USE_C=yes \ | |
38 DM_USE_SIMD=yes \ | |
39 DM_USE_PACKFS=yes \ | |
40 DM_USE_STDIO=yes \ | |
41 DM_USE_MEMIO=yes \ | |
42 JSS=yes \ | |
43 JSS_SUP_XM=yes \ | |
44 JSS_SUP_JSSMOD=yes \ | |
45 JSSMOD_FLAGS="-DJM_SUP_PATMODE_ALL -DJM_SUP_EXT_INSTR -DJM_SUP_INSTR -DJM_SUP_SAMPLES" \ | |
46 JSS_SUP_THREADS=yes | |
66
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
47 |
69 | 48 data: tools $(DATA_PKG) |
66
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
49 |
69 | 50 package: linux-bin mingw-win32 $(DATA_PKG) |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
51 strip $(BINPATH)/*.bin $(BINPATH)/*.exe |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
52 $(RM) $(PACKAGE) |
67 | 53 cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
54 cd $(BINPATH) && zip -x "*~" -9 $(PACKAGE) * |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
55 |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
56 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
57 clean: |
69 | 58 -$(RM) $(DATA_PKG) |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
59 -$(MAKE) -f $(DMLIB)Makefile clean EXEEXT=-linux.bin |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
60 -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
61 |