-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.win32
More file actions
32 lines (24 loc) · 750 Bytes
/
Makefile.win32
File metadata and controls
32 lines (24 loc) · 750 Bytes
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
APPVER = 5.0
TARGETOS = WINNT
NODEBUG = 1
!include <win32.mak>
!ifndef nounicode
cvarsdll = $(cvarsdll) -DUNICODE -D_UNICODE
!endif
cflags = $(cflags) /wd4146 -Dinline=_inline -D_CRT_SECURE_NO_DEPRECATE=1 -D_CRT_NONSTDC_NO_DEPRECATE=1
.SUFFIXES : .bin
OUTDIR=.\bin\win32
TARGET=$(OUTDIR)\tibasic.exe
build: "$(OUTDIR)" "$(TARGET)"
rebuild: clean build
clean:
-erase /f /q "$(OUTDIR)\*.*"
-rmdir "$(OUTDIR)"
.c{$(OUTDIR)}.obj:
$(cc) $(cdebug) $(cflags) $(cvarsdll) /Fo"$(OUTDIR)/" /Fd"$(OUTDIR)/" $<
.bin.c:
perl bin2c.pl $? $@
"$(OUTDIR)":
mkdir "$(OUTDIR)"
"$(TARGET)": "$(OUTDIR)\tibasic.obj" "$(OUTDIR)\runtime_functions.obj" "$(OUTDIR)\rom.obj" "$(OUTDIR)\grom.obj"
$(link) $(ldebug) $(conlflags) -out:"$(TARGET)" $** $(conlibsdll)