2 # OpenWatcom compile and link utility
5 include $(MAKEDIR
)/syslinux.mk
8 WCLOPT
= -6 -osx
-mt
-bt
=DOS
-l
=COM
15 WCTARGETS
= mdiskchk.com
16 NSTARGETS
= eltorito.sys copybs.com
17 WCOBJS
= $(addprefix $(SRC
)/,$(WCTARGETS
))
18 NSOBJS
= $(addprefix $(OBJ
)/,$(NSTARGETS
))
19 TARGETS
= $(WCTARGETS
) $(NSTARGETS
)
22 $(WCL
) $(WCLOPT
) -c
-fo
=$@
$<
25 $(WCL
) $(WCLOPT
) -fe
=$@
$<
26 $(UPX
) --ultra-brute
--lzma
$@ || \
27 $(UPX
) --ultra-brute
$@ || \
33 $(NASM
) $(NASMOPT
) -f bin
-o
$@
-l
$*.lst
$<
34 $(UPX
) --ultra-brute
--lzma
$@ || \
35 $(UPX
) --ultra-brute
$@ || \
41 $(NASM
) $(NASMOPT
) -f bin
-o
$@
-l
$*.lst
$<
42 $(UPX
) --ultra-brute
--lzma
$@ || \
43 $(UPX
) --ultra-brute
$@ || \
51 -rm -f
*.obj
*.lst
*.o
*.0*
56 -rm -f
$(NSTARGETS
) *~
61 mkdir
-m
755 -p
$(INSTALLROOT
)$(AUXDIR
)/dosutil
62 install -m
644 $(WCOBJS
) $(INSTALLROOT
)$(AUXDIR
)/dosutil
63 install -m
644 $(NSOBJS
) $(INSTALLROOT
)$(AUXDIR
)/dosutil