comparison test/suite_aggrs/Nmakefile @ 432:167faab0c0be

first usable version of test suite for aggregates, handling only non-nested struct params, at the moment; still missing: - unions - arrays - aggregates as return values
author Tassilo Philipp
date Fri, 21 Jan 2022 15:42:29 +0100
parents
children
comparison
equal deleted inserted replaced
431:1cb8a65ea27f 432:167faab0c0be
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 = 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 = 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