2007-09-27 10:57:07 +08:00
|
|
|
# -*- makefile -*-
|
|
|
|
#
|
2011-03-16 06:37:30 +08:00
|
|
|
# Makefile for building NASM using OpenWatcom
|
|
|
|
# cross-compile on a DOS/Win32/OS2/Linux platform host
|
2007-09-27 10:57:07 +08:00
|
|
|
#
|
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
top_srcdir = .
|
|
|
|
srcdir = .
|
2017-03-01 15:01:14 +08:00
|
|
|
VPATH = $(srcdir)/asm;$(srcdir)/x86;asm;x86;$(srcdir)/macros;macros;$(srcdir)/output;$(srcdir)/lib;$(srcdir)/common;$(srcdir)/stdlib;$(srcdir)/nasmlib;$(srcdir)/disasm
|
2011-03-16 06:37:30 +08:00
|
|
|
prefix = C:\Program Files\NASM
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
bindir = $(prefix)\bin
|
|
|
|
mandir = $(prefix)\man
|
|
|
|
|
|
|
|
CC = *wcl386
|
|
|
|
DEBUG =
|
|
|
|
CFLAGS = -zq -6 -ox -wx -ze -fpi $(DEBUG)
|
|
|
|
BUILD_CFLAGS = $(CFLAGS) $(%TARGET_CFLAGS)
|
2017-03-01 09:38:01 +08:00
|
|
|
INTERNAL_CFLAGS = -I$(srcdir) -I. -I$(srcdir)/include -I$(srcdir)/x86 -Ix86 -I$(srcdir)/asm -Iasm -I$(srcdir)/disasm -I$(srcdir)/output
|
2011-03-16 06:37:30 +08:00
|
|
|
ALL_CFLAGS = $(BUILD_CFLAGS) $(INTERNAL_CFLAGS)
|
|
|
|
LD = *wlink
|
|
|
|
LDEBUG =
|
|
|
|
LDFLAGS = op quiet $(%TARGET_LFLAGS) $(LDEBUG)
|
|
|
|
LIBS =
|
|
|
|
STRIP = wstrip
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2017-04-04 02:23:31 +08:00
|
|
|
PERL = perl
|
|
|
|
PERLFLAGS = -I$(srcdir)/perllib -I$(srcdir)
|
|
|
|
RUNPERL = $(PERL) $(PERLFLAGS)
|
|
|
|
|
|
|
|
MAKENSIS = makensis
|
|
|
|
|
2007-09-27 10:57:07 +08:00
|
|
|
# Binary suffixes
|
|
|
|
O = obj
|
|
|
|
X = .exe
|
|
|
|
|
|
|
|
# WMAKE errors out if a suffix is declared more than once, including
|
|
|
|
# its own built-in declarations. Thus, we need to explicitly clear the list
|
|
|
|
# first. Also, WMAKE only allows implicit rules that point "to the left"
|
|
|
|
# in this list!
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .man .1 .$(O) .i .c
|
|
|
|
|
|
|
|
# Needed to find C files anywhere but in the current directory
|
|
|
|
.c : $(VPATH)
|
|
|
|
|
|
|
|
.c.$(O):
|
2011-03-16 06:37:30 +08:00
|
|
|
@set INCLUDE=
|
|
|
|
$(CC) -c $(ALL_CFLAGS) -fo=$^@ $[@
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2008-06-16 14:50:50 +08:00
|
|
|
#-- Begin File Lists --#
|
2008-06-16 07:54:29 +08:00
|
|
|
# Edit in Makefile.in, not here!
|
2017-03-01 10:08:21 +08:00
|
|
|
NASM = asm/nasm.$(O)
|
|
|
|
NDISASM = disasm/ndisasm.$(O)
|
|
|
|
|
|
|
|
LIBOBJ = stdlib/snprintf.$(O) stdlib/vsnprintf.$(O) stdlib/strlcpy.$(O) &
|
2017-12-21 05:33:49 +08:00
|
|
|
stdlib/strnlen.$(O) stdlib/strrchrnul.$(O) &
|
|
|
|
&
|
2017-03-01 10:08:21 +08:00
|
|
|
nasmlib/ver.$(O) &
|
|
|
|
nasmlib/crc64.$(O) nasmlib/malloc.$(O) &
|
2017-03-08 11:23:03 +08:00
|
|
|
nasmlib/md5c.$(O) nasmlib/string.$(O) &
|
2017-03-01 10:08:21 +08:00
|
|
|
nasmlib/file.$(O) nasmlib/mmap.$(O) nasmlib/ilog2.$(O) &
|
2017-04-24 13:39:53 +08:00
|
|
|
nasmlib/realpath.$(O) nasmlib/path.$(O) &
|
|
|
|
nasmlib/filename.$(O) nasmlib/srcfile.$(O) &
|
2017-03-01 10:08:21 +08:00
|
|
|
nasmlib/zerobuf.$(O) nasmlib/readnum.$(O) nasmlib/bsi.$(O) &
|
|
|
|
nasmlib/rbtree.$(O) nasmlib/hashtbl.$(O) &
|
|
|
|
nasmlib/raa.$(O) nasmlib/saa.$(O) &
|
|
|
|
nasmlib/strlist.$(O) &
|
2017-04-03 15:09:58 +08:00
|
|
|
nasmlib/perfhash.$(O) nasmlib/badenum.$(O) &
|
2017-12-21 05:33:49 +08:00
|
|
|
&
|
2017-03-01 10:08:21 +08:00
|
|
|
common/common.$(O) &
|
2017-12-21 05:33:49 +08:00
|
|
|
&
|
2017-03-01 10:08:21 +08:00
|
|
|
x86/insnsa.$(O) x86/insnsb.$(O) x86/insnsd.$(O) x86/insnsn.$(O) &
|
|
|
|
x86/regs.$(O) x86/regvals.$(O) x86/regflags.$(O) x86/regdis.$(O) &
|
|
|
|
x86/disp8.$(O) x86/iflag.$(O) &
|
|
|
|
&
|
2017-03-08 11:23:03 +08:00
|
|
|
asm/error.$(O) &
|
2016-05-26 03:06:29 +08:00
|
|
|
asm/float.$(O) &
|
2017-03-08 11:23:03 +08:00
|
|
|
asm/directiv.$(O) asm/directbl.$(O) &
|
2017-03-08 13:32:37 +08:00
|
|
|
asm/pragma.$(O) &
|
2016-05-26 03:06:29 +08:00
|
|
|
asm/assemble.$(O) asm/labels.$(O) asm/parser.$(O) &
|
|
|
|
asm/preproc.$(O) asm/quote.$(O) asm/pptok.$(O) &
|
2017-03-01 10:14:35 +08:00
|
|
|
asm/listing.$(O) asm/eval.$(O) asm/exprlib.$(O) asm/exprdump.$(O) &
|
2016-05-26 03:06:29 +08:00
|
|
|
asm/stdscan.$(O) &
|
|
|
|
asm/strfunc.$(O) asm/tokhash.$(O) &
|
|
|
|
asm/segalloc.$(O) &
|
|
|
|
asm/preproc-nop.$(O) &
|
|
|
|
asm/rdstrnum.$(O) &
|
|
|
|
&
|
|
|
|
macros/macros.$(O) &
|
|
|
|
&
|
2016-09-25 00:46:47 +08:00
|
|
|
output/outform.$(O) output/outlib.$(O) output/legacy.$(O) &
|
2017-04-24 15:23:03 +08:00
|
|
|
output/strtbl.$(O) &
|
2016-09-25 00:46:47 +08:00
|
|
|
output/nulldbg.$(O) output/nullout.$(O) &
|
2011-03-16 06:37:30 +08:00
|
|
|
output/outbin.$(O) output/outaout.$(O) output/outcoff.$(O) &
|
2016-04-10 22:37:11 +08:00
|
|
|
output/outelf.$(O) &
|
2011-03-16 06:37:30 +08:00
|
|
|
output/outobj.$(O) output/outas86.$(O) output/outrdf2.$(O) &
|
2016-02-13 13:18:12 +08:00
|
|
|
output/outdbg.$(O) output/outieee.$(O) output/outmacho.$(O) &
|
2017-03-01 10:08:21 +08:00
|
|
|
output/codeview.$(O) &
|
|
|
|
&
|
|
|
|
disasm/disasm.$(O) disasm/sync.$(O)
|
2017-03-01 17:23:00 +08:00
|
|
|
|
|
|
|
SUBDIRS = stdlib nasmlib output asm disasm x86 common macros
|
2017-04-07 08:24:03 +08:00
|
|
|
XSUBDIRS = test doc nsis rdoff
|
2017-11-02 04:48:17 +08:00
|
|
|
DEPDIRS = . include config x86 rdoff $(SUBDIRS)
|
2008-06-16 14:50:50 +08:00
|
|
|
#-- End File Lists --#
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
what: .SYMBOLIC
|
|
|
|
@echo Please build "dos", "win32", "os2" or "linux386"
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
dos: .SYMBOLIC
|
|
|
|
@set TARGET_CFLAGS=-bt=DOS -I"$(%WATCOM)/h"
|
|
|
|
@set TARGET_LFLAGS=sys causeway
|
|
|
|
@%make all
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
win32: .SYMBOLIC
|
|
|
|
@set TARGET_CFLAGS=-bt=NT -I"$(%WATCOM)/h" -I"$(%WATCOM)/h/nt"
|
|
|
|
@set TARGET_LFLAGS=sys nt
|
|
|
|
@%make all
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
os2: .SYMBOLIC
|
2011-09-21 01:37:06 +08:00
|
|
|
@set TARGET_CFLAGS=-bt=OS2 -I"$(%WATCOM)/h" -I"$(%WATCOM)/h/os2"
|
2011-03-16 06:37:30 +08:00
|
|
|
@set TARGET_LFLAGS=sys os2v2
|
|
|
|
@%make all
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
linux386: .SYMBOLIC
|
|
|
|
@set TARGET_CFLAGS=-bt=LINUX -I"$(%WATCOM)/lh"
|
|
|
|
@set TARGET_LFLAGS=sys linux
|
|
|
|
@%make all
|
|
|
|
|
2016-10-20 04:23:04 +08:00
|
|
|
all: perlreq nasm$(X) ndisasm$(X) .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
# cd rdoff && $(MAKE) all
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2017-03-01 15:01:14 +08:00
|
|
|
NASMLIB = nasm.lib
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2017-03-01 15:01:14 +08:00
|
|
|
nasm$(X): $(NASM) $(NASMLIB)
|
|
|
|
$(LD) $(LDFLAGS) name nasm$(X) libr {$(NASMLIB) $(LIBS)} file {$(NASM)}
|
|
|
|
|
|
|
|
ndisasm$(X): $(NDISASM) $(LIBOBJ)
|
|
|
|
$(LD) $(LDFLAGS) name ndisasm$(X) libr {$(NASMLIB) $(LIBS)} file {$(NDISASM)}
|
|
|
|
|
|
|
|
nasm.lib: $(LIBOBJ)
|
|
|
|
wlib -q -b -n $@ $(LIBOBJ)
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2017-04-04 02:13:29 +08:00
|
|
|
#-- Begin Generated File Rules --#
|
|
|
|
# Edit in Makefile.in, not here!
|
|
|
|
|
|
|
|
# These source files are automagically generated from data files using
|
|
|
|
# Perl scripts. They're distributed, though, so it isn't necessary to
|
|
|
|
# have Perl just to recompile NASM from the distribution.
|
2007-09-27 10:57:07 +08:00
|
|
|
|
2017-04-04 02:13:29 +08:00
|
|
|
# Perl-generated source files
|
|
|
|
PERLREQ = x86/insnsb.c x86/insnsa.c x86/insnsd.c x86/insnsi.h x86/insnsn.c &
|
|
|
|
x86/regs.c x86/regs.h x86/regflags.c x86/regdis.c x86/regdis.h &
|
|
|
|
x86/regvals.c asm/tokhash.c asm/tokens.h asm/pptok.h asm/pptok.c &
|
|
|
|
x86/iflag.c x86/iflaggen.h &
|
|
|
|
macros/macros.c &
|
|
|
|
asm/pptok.ph asm/directbl.c asm/directiv.h &
|
|
|
|
version.h version.mac version.mak nsis/version.nsh
|
2013-11-10 02:16:11 +08:00
|
|
|
|
2017-04-04 01:33:12 +08:00
|
|
|
INSDEP = x86/insns.dat x86/insns.pl x86/insns-iflags.ph
|
2017-03-01 09:38:01 +08:00
|
|
|
|
|
|
|
x86/iflag.c: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -fc &
|
|
|
|
$(srcdir)/x86/insns.dat x86/iflag.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/iflaggen.h: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -fh &
|
|
|
|
$(srcdir)/x86/insns.dat x86/iflaggen.h
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/insnsb.c: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -b &
|
|
|
|
$(srcdir)/x86/insns.dat x86/insnsb.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/insnsa.c: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -a &
|
|
|
|
$(srcdir)/x86/insns.dat x86/insnsa.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/insnsd.c: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -d &
|
|
|
|
$(srcdir)/x86/insns.dat x86/insnsd.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/insnsi.h: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -i &
|
|
|
|
$(srcdir)/x86/insns.dat x86/insnsi.h
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/insnsn.c: $(INSDEP)
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/insns.pl -n &
|
|
|
|
$(srcdir)/x86/insns.dat x86/insnsn.c
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# These files contains all the standard macros that are derived from
|
|
|
|
# the version number.
|
|
|
|
version.h: version version.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/version.pl h < $(srcdir)/version > version.h
|
2007-09-27 10:57:07 +08:00
|
|
|
version.mac: version version.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/version.pl mac < $(srcdir)/version > version.mac
|
|
|
|
version.sed: version version.pl
|
|
|
|
$(RUNPERL) $(srcdir)/version.pl sed < $(srcdir)/version > version.sed
|
|
|
|
version.mak: version version.pl
|
|
|
|
$(RUNPERL) $(srcdir)/version.pl make < $(srcdir)/version > version.mak
|
|
|
|
nsis/version.nsh: version version.pl
|
|
|
|
$(RUNPERL) $(srcdir)/version.pl nsis < $(srcdir)/version > nsis/version.nsh
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# This source file is generated from the standard macros file
|
|
|
|
# `standard.mac' by another Perl script. Again, it's part of the
|
|
|
|
# standard distribution.
|
2017-04-04 02:13:29 +08:00
|
|
|
macros/macros.c: macros/macros.pl asm/pptok.ph version.mac &
|
|
|
|
$(srcdir)/macros/*.mac $(srcdir)/output/*.mac
|
|
|
|
$(RUNPERL) $(srcdir)/macros/macros.pl version.mac &
|
|
|
|
$(srcdir)/macros/*.mac $(srcdir)/output/*.mac
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# These source files are generated from regs.dat by yet another
|
|
|
|
# perl script.
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regs.c: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl c &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regs.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regflags.c: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl fc &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regflags.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regdis.c: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl dc &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regdis.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regdis.h: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl dh &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regdis.h
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regvals.c: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl vc &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regvals.c
|
2017-03-01 09:38:01 +08:00
|
|
|
x86/regs.h: x86/regs.dat x86/regs.pl
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/x86/regs.pl h &
|
|
|
|
$(srcdir)/x86/regs.dat > x86/regs.h
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# Assembler token hash
|
2017-04-04 02:13:29 +08:00
|
|
|
asm/tokhash.c: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl &
|
|
|
|
perllib/phash.ph
|
|
|
|
$(RUNPERL) $(srcdir)/asm/tokhash.pl c &
|
|
|
|
$(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat &
|
|
|
|
$(srcdir)/asm/tokens.dat > asm/tokhash.c
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# Assembler token metadata
|
2017-04-04 02:13:29 +08:00
|
|
|
asm/tokens.h: x86/insns.dat x86/regs.dat asm/tokens.dat asm/tokhash.pl &
|
|
|
|
perllib/phash.ph
|
|
|
|
$(RUNPERL) $(srcdir)/asm/tokhash.pl h &
|
|
|
|
$(srcdir)/x86/insns.dat $(srcdir)/x86/regs.dat &
|
|
|
|
$(srcdir)/asm/tokens.dat > asm/tokens.h
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
# Preprocessor token hash
|
2017-03-01 09:38:01 +08:00
|
|
|
asm/pptok.h: asm/pptok.dat asm/pptok.pl perllib/phash.ph
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/asm/pptok.pl h &
|
|
|
|
$(srcdir)/asm/pptok.dat asm/pptok.h
|
2017-03-01 09:38:01 +08:00
|
|
|
asm/pptok.c: asm/pptok.dat asm/pptok.pl perllib/phash.ph
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/asm/pptok.pl c &
|
|
|
|
$(srcdir)/asm/pptok.dat asm/pptok.c
|
2017-03-01 09:38:01 +08:00
|
|
|
asm/pptok.ph: asm/pptok.dat asm/pptok.pl perllib/phash.ph
|
2017-04-04 02:13:29 +08:00
|
|
|
$(RUNPERL) $(srcdir)/asm/pptok.pl ph &
|
|
|
|
$(srcdir)/asm/pptok.dat asm/pptok.ph
|
2011-03-16 06:37:30 +08:00
|
|
|
|
|
|
|
# Directives hash
|
2017-04-04 02:13:29 +08:00
|
|
|
asm/directiv.h: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
|
|
|
|
$(RUNPERL) $(srcdir)/nasmlib/perfhash.pl h &
|
|
|
|
$(srcdir)/asm/directiv.dat asm/directiv.h
|
|
|
|
asm/directbl.c: asm/directiv.dat nasmlib/perfhash.pl perllib/phash.ph
|
|
|
|
$(RUNPERL) $(srcdir)/nasmlib/perfhash.pl c &
|
|
|
|
$(srcdir)/asm/directiv.dat asm/directbl.c
|
|
|
|
|
|
|
|
#-- End Generated File Rules --#
|
|
|
|
|
2017-04-06 12:24:55 +08:00
|
|
|
perlreq: $(PERLREQ) .SYMBOLIC
|
|
|
|
|
2017-04-04 02:13:29 +08:00
|
|
|
#-- Begin NSIS Rules --#
|
|
|
|
# Edit in Makefile.in, not here!
|
|
|
|
|
|
|
|
# NSIS is not built except by explicit request, as it only applies to
|
|
|
|
# Windows platforms
|
|
|
|
nsis/arch.nsh: nsis/getpearch.pl nasm$(X)
|
|
|
|
$(PERL) $(srcdir)/nsis/getpearch.pl nasm$(X) > nsis/arch.nsh
|
|
|
|
|
|
|
|
# Should only be done after "make everything".
|
|
|
|
# The use of redirection here keeps makensis from moving the cwd to the
|
|
|
|
# source directory.
|
|
|
|
nsis: nsis/nasm.nsi nsis/arch.nsh nsis/version.nsh
|
|
|
|
$(MAKENSIS) -Dsrcdir="$(srcdir)" -Dobjdir="$(objdir)" - < nsis/nasm.nsi
|
|
|
|
|
|
|
|
#-- End NSIS Rules --#
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
clean: .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f *.$(O) *.s *.i
|
2017-03-01 15:01:14 +08:00
|
|
|
rm -f asm/*.$(O) asm/*.s asm/*.i
|
|
|
|
rm -f x86/*.$(O) x86/*.s x86/*.i
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f lib/*.$(O) lib/*.s lib/*.i
|
2017-03-01 15:01:14 +08:00
|
|
|
rm -f macros/*.$(O) macros/*.s macros/*.i
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f output/*.$(O) output/*.s output/*.i
|
2017-03-01 15:01:14 +08:00
|
|
|
rm -f common/*.$(O) common/*.s common/*.i
|
|
|
|
rm -f stdlib/*.$(O) stdlib/*.s stdlib/*.i
|
|
|
|
rm -f nasmlib/*.$(O) nasmlib/*.s nasmlib/*.i
|
2017-03-01 17:23:00 +08:00
|
|
|
rm -f disasm/*.$(O) disasm/*.s disasm/*.i
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f config.h config.log config.status
|
2017-03-01 15:01:14 +08:00
|
|
|
rm -f nasm$(X) ndisasm$(X) $(NASMLIB)
|
2011-03-16 06:37:30 +08:00
|
|
|
# cd rdoff && $(MAKE) clean
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
distclean: clean .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f config.h config.log config.status
|
|
|
|
rm -f Makefile *~ *.bak *.lst *.bin
|
|
|
|
rm -f output/*~ output/*.bak
|
|
|
|
rm -f test/*.lst test/*.bin test/*.$(O) test/*.bin
|
|
|
|
# -del /s autom4te*.cache
|
|
|
|
# cd rdoff && $(MAKE) distclean
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
cleaner: clean .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f $(PERLREQ)
|
|
|
|
rm -f *.man
|
|
|
|
rm -f nasm.spec
|
|
|
|
# cd doc && $(MAKE) clean
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
spotless: distclean cleaner .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
rm -f doc/Makefile doc/*~ doc/*.bak
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
strip: .SYMBOLIC
|
2011-03-16 06:37:30 +08:00
|
|
|
$(STRIP) *.exe
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
rdf:
|
2011-03-16 06:37:30 +08:00
|
|
|
# cd rdoff && $(MAKE)
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
doc:
|
2011-03-16 06:37:30 +08:00
|
|
|
# cd doc && $(MAKE) all
|
2007-09-27 10:57:07 +08:00
|
|
|
|
|
|
|
everything: all doc rdf
|
|
|
|
|
2011-03-16 06:37:30 +08:00
|
|
|
#
|
|
|
|
# This build dependencies in *ALL* makefiles. Partially for that reason,
|
|
|
|
# it's expected to be invoked manually.
|
|
|
|
#
|
|
|
|
alldeps: perlreq .SYMBOLIC
|
|
|
|
$(PERL) syncfiles.pl Makefile.in Mkfiles/openwcom.mak
|
|
|
|
$(PERL) mkdep.pl -M Makefile.in Mkfiles/openwcom.mak -- . output lib
|
|
|
|
|
2007-09-27 10:57:07 +08:00
|
|
|
#-- Magic hints to mkdep.pl --#
|
|
|
|
# @object-ending: ".$(O)"
|
2011-03-16 06:37:30 +08:00
|
|
|
# @path-separator: "/"
|
2016-10-20 04:23:04 +08:00
|
|
|
# @exclude: "config/config.h"
|
2007-09-27 10:57:07 +08:00
|
|
|
# @continuation: "&"
|
|
|
|
#-- Everything below is generated by mkdep.pl - do not edit --#
|