-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnMakefile
58 lines (46 loc) · 1.77 KB
/
nMakefile
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
#
# Copyright (c) 2024 Logan Ryan McLintock
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
CFLAGS = /Od /Zi /MT /Qspectre /Wall /I .
apps = spot.exe m4.exe bc.exe freq.exe tornado_dodge.exe
all: $(apps)
curses.obj: curses.h
gen.obj: toucanlib.h
num.obj: toucanlib.h
buf.obj: toucanlib.h
gb.obj: toucanlib.h
eval.obj: toucanlib.h
ht.obj: toucanlib.h
toco_regex.obj: toucanlib.h
fs.obj: toucanlib.h
toucanlib.lib: gen.obj num.obj buf.obj gb.obj eval.obj ht.obj \
toco_regex.obj fs.obj
lib gen.obj num.obj buf.obj gb.obj eval.obj ht.obj toco_regex.obj \
fs.obj /OUT:toucanlib.lib
spot.exe: spot.c curses.obj toucanlib.lib
cl $(CFLAGS) spot.c curses.obj toucanlib.lib
m4.exe: m4.c toucanlib.lib
cl $(CFLAGS) m4.c toucanlib.lib
bc.exe: bc.c toucanlib.lib
cl $(CFLAGS) bc.c toucanlib.lib
freq.exe: freq.c toucanlib.lib
cl $(CFLAGS) freq.c toucanlib.lib
tornado_dodge.exe: tornado_dodge.c curses.obj toucanlib.lib
cl $(CFLAGS) tornado_dodge.c curses.obj toucanlib.lib
install:
if not exist $(PREFIX)\bin mkdir $(PREFIX)\bin
for %i in ($(apps)) do copy %i $(PREFIX)\bin
clean:
del *.obj *.lib *.ilk *.pdb $(apps)