installer: Add UFS1/2 support for Extlinux installer
[syslinux.git] / dosutil / Makefile
blob9dc88d1f0d3304ddf1fbeff24a968f72799ba453
2 # OpenWatcom compile and link utility
4 VPATH = $(SRC)
5 include $(MAKEDIR)/syslinux.mk
7 WCL = wcl
8 WCLOPT = -6 -osx -mt -bt=DOS -l=COM
10 UPX = upx
12 NASM = nasm
13 NASMOPT = -Ox
15 WCTARGETS = mdiskchk.com
16 NSTARGETS = eltorito.sys copybs.com
17 WCOBJS = $(addprefix $(SRC)/,$(WCTARGETS))
18 NSOBJS = $(addprefix $(OBJ)/,$(NSTARGETS))
19 TARGETS = $(WCTARGETS) $(NSTARGETS)
21 %.obj: %.c
22 $(WCL) $(WCLOPT) -c -fo=$@ $<
24 %.com: %.obj
25 $(WCL) $(WCLOPT) -fe=$@ $<
26 $(UPX) --ultra-brute --lzma $@ || \
27 $(UPX) --ultra-brute $@ || \
28 true
29 rm -f $*.0*
30 chmod a-x $@
32 %.sys: %.asm
33 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
34 $(UPX) --ultra-brute --lzma $@ || \
35 $(UPX) --ultra-brute $@ || \
36 true
37 rm -f $*.0*
38 chmod a-x $@
40 %.com: %.asm
41 $(NASM) $(NASMOPT) -f bin -o $@ -l $*.lst $<
42 $(UPX) --ultra-brute --lzma $@ || \
43 $(UPX) --ultra-brute $@ || \
44 true
45 rm -f $*.0*
46 chmod a-x $@
48 all: $(TARGETS)
50 tidy dist:
51 -rm -f *.obj *.lst *.o *.0*
53 clean: tidy
55 spotless: clean
56 -rm -f $(NSTARGETS) *~
58 installer: all
60 install: installer
61 mkdir -m 755 -p $(INSTALLROOT)$(AUXDIR)/dosutil
62 install -m 644 $(WCOBJS) $(INSTALLROOT)$(AUXDIR)/dosutil
63 install -m 644 $(NSOBJS) $(INSTALLROOT)$(AUXDIR)/dosutil