elf: remove long-since-obsolete shallow module machinery
[syslinux/sherbszt.git] / dosutil / Makefile
blob6bce62485bb31b746e9852b0a44b141dd7a385a3
2 # OpenWatcom compile and link utility
4 topdir = ..
5 MAKEDIR = $(topdir)/mk
6 include $(MAKEDIR)/syslinux.mk
8 WCL = wcl
9 WCLOPT = -6 -osx -mt -bt=DOS -l=COM
11 UPX = upx
13 NASM = nasm
14 NASMOPT = -Ox
16 WCTARGETS = mdiskchk.com
17 NSTARGETS = eltorito.sys copybs.com
18 TARGETS = $(WCTARGETS) $(NSTARGETS)
20 %.obj: %.c
21 $(WCL) $(WCLOPT) -c -fo=$@ $<
23 %.com: %.obj
24 $(WCL) $(WCLOPT) -fe=$@ $<
25 $(UPX) --ultra-brute --lzma $@ || \
26 $(UPX) --ultra-brute $@ || \
27 true
28 rm -f $*.0*
29 chmod a-x $@
31 %.sys: %.asm
32 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
33 $(UPX) --ultra-brute --lzma $@ || \
34 $(UPX) --ultra-brute $@ || \
35 true
36 rm -f $*.0*
37 chmod a-x $@
39 %.com: %.asm
40 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
41 $(UPX) --ultra-brute --lzma $@ || \
42 $(UPX) --ultra-brute $@ || \
43 true
44 rm -f $*.0*
45 chmod a-x $@
47 all: $(TARGETS)
49 tidy dist:
50 -rm -f *.obj *.lst *.o *.0*
52 clean: tidy
54 spotless: clean
55 -rm -f $(NSTARGETS) *~
57 installer: all
59 install: installer
60 mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)/dosutil
61 install -m 644 $(TARGETS) $(INSTALLROOT)$(AUXDIR)/dosutil