rename project to visftp
[oftp] / Makefile
index 05eac20..26330d7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
-obj = main.obj tgfx.obj tui.obj darray.obj util.obj input.obj
-bin = oftp.exe
+obj = main.obj tgfx.obj tui.obj tui_list.obj darray.obj util.obj input.obj ftp.obj
+bin = visftp.exe
 
 !ifdef __UNIX__
-incpath = -Isrc -Isrc/dos
+incpath = -Isrc -Isrc/dos -Ilibs/watt32
+libs = library libs/watt32/wattcpwf.lib
 !else
-incpath = -Isrc -Isrc\dos
+incpath = -Isrc -Isrc\dos -Ilibs\watt32
+libs = library libs\watt32\wattcpwf.lib
 !endif
 
 #opt = -otexan
@@ -14,6 +16,7 @@ dbg = -d3
 CC = wcc386
 LD = wlink
 CFLAGS = $(warn) $(dbg) $(opt) $(incpath) $(def) -zq -bt=dos
+LDFLAGS = $(libs)
 
 $(bin): $(obj)
        %write objects.lnk $(obj)
@@ -28,7 +31,16 @@ $(bin): $(obj)
 .asm.obj:
        nasm -f obj -o $@ $[*.asm
 
+!ifdef __UNIX__
+clean: .symbolic
+       rm -f *.obj
+       rm -f objects.lnk
+       rm -f visftp.map
+       rm -f $(bin)
+!else
 clean: .symbolic
        del *.obj
        del objects.lnk
+       del visftp.map
        del $(bin)
+!endif