comparison test/call_suite_aggrs/Nmakefile @ 485:0c68b3f91367

- renamed suite_aggrs to call_suite_aggrs for consistency (callback version will be called callback_suite_aggrs)
author Tassilo Philipp
date Thu, 17 Mar 2022 15:41:26 +0100
parents test/suite_aggrs/Nmakefile@167faab0c0be
children
comparison
equal deleted inserted replaced
484:74a4f682d1ef 485:0c68b3f91367
1 #//////////////////////////////////////////////////////////////////////////////
2 #
3 # Copyright (c) 2022 Tassilo Philipp <tphilipp@potion-studios.com>
4 #
5 # Permission to use, copy, modify, and distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17 #//////////////////////////////////////////////////////////////////////////////
18
19 #///////////////////////////////////////////////////
20 #
21 # nmake makefile
22 # Nmakefile
23 #
24 #///////////////////////////////////////////////////
25
26
27 TOP = ..\..
28
29 !INCLUDE $(TOP)\buildsys\nmake\prolog.nmake
30
31
32 AUTOS = cases.h
33
34
35 !IF "$(BUILD_OS)" == "windows"
36
37 TARGETS = call_suite_aggrs.exe
38 OBJS = main.obj cases.obj globals.obj
39
40 $(TARGETS): $(OBJS)
41 echo Linking $@ ...
42 $(LD) /OUT:"$@" $(LDFLAGS) $(OBJS) $(TOP)\dyncall\dyncall_s.lib
43
44
45 !ELSE IF "$(BUILD_OS)" == "nds"
46
47 TARGETS = call_suite_aggrs.nds
48 OBJS = main.o cases.o globals.o
49
50 $(TARGETS): $(OBJS)
51 echo Linking $@ ...
52 $(LD) $(LDFLAGS) $(OBJS) $(DEVKITPRO_PATH)\libnds\lib\libnds9.a $(TOP)/dyncall/libdyncall_s.a -o "$(@B).elf"
53 $(OCP) -O binary "$(@B).elf" "$(@B).arm9"
54 ndstool -c "$@" -9 "$(@B).arm9"
55 del "$(@B).elf" "$(@B).arm9"
56
57 !ENDIF
58
59
60
61 $(OBJS): $(AUTOS)
62
63 $(AUTOS): mk-cases.lua
64 lua mk-cases.lua <cases.txt >cases.h
65
66
67 !INCLUDE $(TOP)\buildsys\nmake\epilog.nmake
68