Releasing debian version 4.04+dfsg-9.
[syslinux-debian/hramrach.git] / dosutil / Makefile
blobfc10ff905cb47b268a5d3aaae3b17cb0329f220d
2 # OpenWatcom compile and link utility
4 topdir = ..
5 include $(topdir)/MCONFIG
7 WCL = wcl
8 WCLOPT = -6 -osx -mt -bt=DOS -l=COM
10 UPX = upx
12 NASM = nasm
13 NASMOPT = -O9999
15 WCTARGETS = mdiskchk.com
16 NSTARGETS = eltorito.sys copybs.com
17 TARGETS = $(WCTARGETS) $(NSTARGETS)
19 %.obj: %.c
20 $(WCL) $(WCLOPT) -c -fo=$@ $<
22 %.com: %.obj
23 $(WCL) $(WCLOPT) -fe=$@ $<
24 $(UPX) --ultra-brute --lzma $@ || \
25 $(UPX) --ultra-brute $@ || \
26 true
27 rm -f $*.0*
28 chmod a-x $@
30 %.sys: %.asm
31 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
32 $(UPX) --ultra-brute --lzma $@ || \
33 $(UPX) --ultra-brute $@ || \
34 true
35 rm -f $*.0*
36 chmod a-x $@
38 %.com: %.asm
39 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
40 $(UPX) --ultra-brute --lzma $@ || \
41 $(UPX) --ultra-brute $@ || \
42 true
43 rm -f $*.0*
44 chmod a-x $@
46 all: $(TARGETS)
48 tidy dist:
49 -rm -f *.obj *.lst *.o *.0*
51 clean: tidy
53 spotless: clean
54 -rm -f $(NSTARGETS) *~
56 installer: all
58 install: installer
59 mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)/dosutil
60 install -m 644 $(TARGETS) $(INSTALLROOT)$(AUXDIR)/dosutil