-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
76 lines (51 loc) · 1.71 KB
/
Makefile.am
File metadata and controls
76 lines (51 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
bin_PROGRAMS = SortTest
SortTest_SOURCES = argparse.c csv.c Sort.c SortList.c SortTest.c GUI.c GUI_impl_win.c GUI_conscreen.c GUI_impl_unix.c GUI_impl_ti.c NoFont/Font_Driver.c List/List.c Conscreen/Conscreen_ANSI.c Conscreen/Conscreen.c Conscreen/Conscreen_screen.c Conscreen/Conscreen_string.c Conscreen/Conscreen_console.c
SortTest_DEPENDENCIES = Font.font.c
include_HEADERS = argparse.h SortList.h GUI.h csv.h Sort.h SortTest.h List/List.h GUI_impl.h NoFont/Font_Driver.h Conscreen/Conscreen.h Conscreen/Conscreen_ANSI.h Conscreen/Conscreen_string.h Conscreen/Conscreen_console.h Conscreen/Conscreen_screen.h
_EXTRA_CLEANUP=Font.font.c
if BUILD_WIN32
PY=python
else
PY=python3
endif
SortTest_CFLAGS=-Wall -Wpedantic -Wextra
if DEBUG
SortTest_CFLAGS+=-ggdb -fsanitize=address
else
SortTest_CFLAGS+=-Ofast -funsafe-math-optimizations
if BUILD_NSPIRE
_EXTRA_CLEANUP+= $(PROGRAMS:.elf=.tns)
else
SortTest_CFLAGS+=-mavx2 -m64 -s
endif
endif
if BUILD_LINUX
SortTest_LDADD=-lX11 -lpthread -lm
endif
if BUILD_WIN32
SortTest_LDADD=-lgdi32
SortTest_CFLAGS+=-U__unix__ -D_WIN32
endif
if BUILD_NSPIRE
SortTest_CFLAGS+=-U__unix__ -DNSPIRE -marm
SortTest_LDFLAGS=-Wl,--nspireio,--gc-sections
EXEEXT+=.elf
SUFFIXES: .tns .zehn .elf .c .o
GENZEHN = genzehn
ZEHNFLAGS = --name "SortTest"
EXE=$(top_builddir)/bin/SortTest
.elf.zehn:
$(GENZEHN) --input $< --output $@ $(ZEHNFLAGS)
rm $<
.zehn.tns:
make-prg $< $@
rm $<
all-am: Makefile $(PROGRAMS:.elf=.tns) $(HEADERS)
endif
GUI.c: Font.font.c
Font.font.c: Font.bmp
$(PY) $(top_srcdir)/NoFont/img2font.py $< "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890()[]{}!?\"=/\'+-*#.,_" true
clean-local: clean-local-extra
.PHONY: clean-local-extra
clean-local-extra:
rm -f $(_EXTRA_CLEANUP)