projects
/
oftp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved dos tgfx.c to src/dos
[oftp]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
26c7bac
..
dd0f1bf
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,20
+1,26
@@
obj = main.obj tgfx.obj tui.obj darray.obj util.obj
bin = oftp.exe
obj = main.obj tgfx.obj tui.obj darray.obj util.obj
bin = oftp.exe
+!ifdef __UNIX__
+incpath = -Isrc -Isrc/dos
+!else
+incpath = -Isrc -Isrc\dos
+!endif
+
#opt = -otexan
warn = -w=3
dbg = -d3
CC = wcc386
LD = wlink
#opt = -otexan
warn = -w=3
dbg = -d3
CC = wcc386
LD = wlink
-CFLAGS = $(warn) $(dbg) $(opt) $(def) -zq -bt=dos
+CFLAGS = $(warn) $(dbg) $(opt) $(incpath) $(def) -zq -bt=dos
$(bin): $(obj)
%write objects.lnk $(obj)
$(LD) debug all option map name $@ system dos4g file { @objects } $(LDFLAGS)
$(bin): $(obj)
%write objects.lnk $(obj)
$(LD) debug all option map name $@ system dos4g file { @objects } $(LDFLAGS)
-.c: src
-.asm: src
+.c: src;src/dos
+.asm: src;src/dos
.c.obj: .autodepend
$(CC) -fo=$@ $(CFLAGS) $<
.c.obj: .autodepend
$(CC) -fo=$@ $(CFLAGS) $<