dropped in the dos stuff
[smouse] / Makefile.dos
diff --git a/Makefile.dos b/Makefile.dos
new file mode 100644 (file)
index 0000000..44c1b2f
--- /dev/null
@@ -0,0 +1,24 @@
+obj = main.obj serial.obj device.obj dev_smag.obj vmath.obj
+bin = smouse.exe
+
+def = -dM_PI=3.141592653589793
+opt = -5 -fp5 -otexan -oh -oi -ei
+dbg = -d1
+
+incpath = -Isrc
+
+CC = wcc386
+CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos $(incpath)
+LD = wlink
+RM = del
+
+$(bin): $(obj)
+       *$(LD) debug all name $@ system dos4g file { $(obj) } $(LDFLAGS)
+
+.c: src;src/dos
+
+.c.obj: .autodepend
+       $(CC) -fo=$@ $(CFLAGS) $[*
+
+clean: .symbolic
+       $(RM) *.obj