Mercurial > hg > demos > krapula
annotate Makefile @ 62:c95af70f18c5
Add missing asset.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 19 Aug 2017 17:29:17 +0300 |
parents | 7daf69b39f34 |
children | 6ee701e2d8d9 |
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 |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
24 $(DATA): |
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 |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
27 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
|
28 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
|
29 $(RM) $(PACKAGE) |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
30 @cp SDL.dll LICENSE.txt README.txt file_id.diz $(BINPATH) |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
31 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
|
32 |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
33 |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
34 clean: |
59
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
35 -$(RM) $(DATA) |
7daf69b39f34
Cleanups, add license, file_id.diz, fix and update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
53
diff
changeset
|
36 -$(MAKE) -f $(DMLIB)Makefile clean EXEEXT=-linux.bin |
53
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
37 -$(MAKE) -f $(DMLIB)Makefile.cross-mingw clean |
554e3f02ba6f
Unify / update build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
40
diff
changeset
|
38 |