aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-05 14:15:12 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-05 17:14:41 -0700
commit6483c80e7710cfb1ddd10c1296fac1a7bbda202f (patch)
tree9b7a92e761564e8a6d50b1fa0a3b1598d5d8e6cb
parent46a81bae932b3f84c5e76dc3c2a10e3d2d090fbb (diff)
downloadpxelinux-6483c80e7710cfb1ddd10c1296fac1a7bbda202f.tar.gz
pxelinux-6483c80e7710cfb1ddd10c1296fac1a7bbda202f.tar.xz
pxelinux-6483c80e7710cfb1ddd10c1296fac1a7bbda202f.zip
dosutil/Makefile: more complete structure
More complete and consistent structure for dosutil/Makefile. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--dosutil/Makefile28
1 files changed, 20 insertions, 8 deletions
diff --git a/dosutil/Makefile b/dosutil/Makefile
index 6a11f51c..1ff3aad8 100644
--- a/dosutil/Makefile
+++ b/dosutil/Makefile
@@ -1,18 +1,30 @@
#
# OpenWatcom compile and link utility
#
-WCL = wcl
-WCLOPT_DOSCOM = -3 -osx -mt -bt=DOS -l=COM
+WCL = wcl
+WCLOPT = -6 -osx -mt -bt=DOS -l=COM
-UPX = upx
+UPX = upx
-%.com: %.c
- $(WCL) $(WCLOPT_DOSCOM) -fe=$@ $<
+TARGETS = mdiskchk.com
+
+%.obj: %.c
+ $(WCL) $(WCLOPT) -c -fo=$@ $<
+
+%.com: %.obj
+ $(WCL) $(WCLOPT) -fe=$@ $<
$(UPX) --ultra-brute --lzma $@ || \
$(UPX) --ultra-brute $@ || \
true
-all: mdiskchk.com
+all: $(TARGETS)
+
+tidy dist:
+ -rm -f *.obj *.o
+
+clean: tidy
+
+spotless: clean
+ -rm -f *.com *.sys *~
+
-clean:
- rm -f *.o *.obj *.com *.sys