comparison test/callback_suite_aggrs/Nmakefile @ 523:cd46e111bc4c

- new test/callback_suite_aggrs (currently ahead of checked-in dyncall code and won't compile, though, as with call_suite_aggrs; dc code will be checked in, soon)
author Tassilo Philipp
date Wed, 13 Apr 2022 14:59:57 +0200
parents
children
comparison
equal deleted inserted replaced
522:f7fec6699e21 523:cd46e111bc4c
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 !IF "$(BUILD_OS)" == "windows"
33
34 TARGETS = callback_suite_aggrs.exe
35
36 OBJS = globals.obj cases.obj main.obj
37 $(TARGETS): $(OBJS)
38 echo Linking $@ ...
39 $(LD) /OUT:"$@" $(LDFLAGS) $(OBJS) $(TOP)\dyncall\dyncall_s.lib $(TOP)\dyncallback\dyncallback_s.lib
40
41
42 !ELSE IF "$(BUILD_OS)" == "nds"
43
44 TARGETS = callback_suite_aggrs.nds
45 OBJS = globals.o cases.o main.o
46
47 $(TARGETS): $(OBJS)
48 echo Linking $@ ...
49 $(LD) $(LDFLAGS) $(OBJS) $(DEVKITPRO_PATH)\libnds\lib\libnds9.a $(TOP)/dyncall/libdyncall_s.a $(TOP)\dyncallback\libdyncallback_s.a -o "$(@B).elf"
50 $(OCP) -O binary "$(@B).elf" "$(@B).arm9"
51 ndstool -c "$@" -9 "$(@B).arm9"
52 del "$(@B).elf" "$(@B).arm9"
53
54 !ENDIF
55
56
57 !INCLUDE $(TOP)\buildsys\nmake\epilog.nmake
58