Mercurial > hg > demos > krapula
annotate Makefile @ 68:aa06f72f6557
optDataPath not used anymore.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 Oct 2019 08:20:15 +0300 |
parents | e2415dd9b6b1 |
children | f0b26daba6a9 |
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 |
0 | 5 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
6 export DMLIB |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
7 export BINPATH |
40
9cbb03e85597
Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
36
diff
changeset
|
8 |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
9 linux-bin: |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
10 $(MAKE) -f $(DMLIB)Makefile EXEEXT=-linux.bin |
40
9cbb03e85597
Update to latest dmlib API changes.
Matti Hamalainen <ccr@tnsp.org>
parents:
36
diff
changeset
|
11 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
12 mingw-win32: |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
13 $(MAKE) -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
|
14 OBJPATH=$(BPATH)/obj/win32/ \ |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
15 MINGW_PREFIX=i686-w64-mingw32- \ |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
16 MINGW_PATH=/usr/i686-w64-mingw32 |
0 | 17 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
18 mingw-win64: |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
19 $(MAKE) -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
|
20 OBJPATH=$(BPATH)/obj/win64/ \ |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
21 MINGW_PREFIX=x86_64-w64-mingw32- \ |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
22 MINGW_PATH=/usr/x86_64-w64-mingw32 |
0 | 23 |
67 | 24 $(DATA): $(wildcard $(BPATH)/data/*) |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
25 cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v * |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
26 |
66
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
27 tools: |
67 | 28 @if test ! -e $(DMLIB)config.mak; then cp $(DMLIB)config.mak.in $(DMLIB)config.mak; fi |
29 @cd $(DMLIB) && make -j4 | |
66
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
30 |
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
31 data: tools $(DATA) |
6ee701e2d8d9
Update compilation instructions and add new targets to build.
Matti Hamalainen <ccr@tnsp.org>
parents:
59
diff
changeset
|
32 |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
33 package: linux-bin mingw-win32 $(DATA) |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
34 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
|
35 $(RM) $(PACKAGE) |
67 | 36 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
|
37 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
|
38 |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
39 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
40 clean: |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
41 -$(RM) $(DATA) |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
42 -$(MAKE) -f $(DMLIB)Makefile clean EXEEXT=-linux.bin |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
43 -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
44 |