diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-05-09 19:36:29 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:39:48 +0200 |
commit | e63c244cb22bf48ca1d2695784a072269d19ea96 (patch) | |
tree | 45b9018259f43db629b27395783cf48e55a85eee /makefile.in | |
parent | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (diff) | |
download | dev86-e63c244cb22bf48ca1d2695784a072269d19ea96.tar.gz |
Import Dev86src-0.12.0.tar.gzv0.12.0
Diffstat (limited to 'makefile.in')
-rw-r--r-- | makefile.in | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/makefile.in b/makefile.in index a382e30..423b154 100644 --- a/makefile.in +++ b/makefile.in @@ -21,24 +21,34 @@ MAKEC=$(MAKE) -C MAKEX= #ifdef __GNUC__ +# unproto is yukky, I've included '-w' in the local makefile. + WALL =-Wtraditional -Wshadow -Wid-clash-14 -Wpointer-arith \ -Wcast-qual -Wcast-align -Wconversion -Waggregate-return \ -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls \ -Wnested-externs -Winline -# unproto is yukky, I've included '-w' in the local makefile. WALL =-Wstrict-prototypes CC =gcc $(GCCFLAG) +#ifdef __i386__ +CFLAGS =-Wall $(WALL) -O2 -m486 -fno-strength-reduce +#else CFLAGS =-Wall $(WALL) -O2 -fno-strength-reduce +#endf LDFLAGS =-s #endif +#ifndef GNUMAKE +MAKEC=sh makec +MAKEX=makec +#endif + #ifdef __minix # Minix make doesn't understand -C, cc runs out of memory with the headers. MAKEC=ash makec MAKEX=makec -CFLAGS=-O -m -w -DPOSIX_HEADERS_MISSING +CFLAGS=-O -m -w -DPOSIX_HEADERS_MISSING -DVERY_SMALL_MEMORY #endif #ifdef __BCC__ @@ -106,12 +116,12 @@ copt: bindir as86: bindir $(MAKEC) as $(MAKEARG) all - cp -p as/as86 lib/as86 + cp -p as/as86 bin/as86 cp -p as/as86_encap bin/as86_encap ld86: bindir $(MAKEC) ld $(MAKEARG) ld86 - cp -p ld/ld86 lib/ld86 + cp -p ld/ld86 bin/ld86 elksemu: bindir $(MAKEC) elksemu $(MAKEARG) elksemu @@ -120,13 +130,15 @@ elksemu: bindir install-bcc: bcc unproto copt as86 ld86 install -d $(DISTBIN) $(DISTLIB) $(DISTLIB)/i86 install $(INEXE) bin/bcc $(DISTBIN)/bcc + install $(INEXE) bin/as86_encap $(DISTBIN)/as86_encap + install $(INEXE) bin/as86 $(DISTBIN)/as86 + install $(INEXE) bin/ld86 $(DISTBIN)/ld86 install $(INEXE) lib/bcc-cc1 $(DISTLIB)/bcc-cc1 install $(INEXE) lib/unproto $(DISTLIB)/unproto - install $(INEXE) lib/as86 $(DISTLIB)/as86 - install $(INEXE) bin/as86_encap $(DISTBIN)/as86_encap - install $(INEXE) lib/ld86 $(DISTLIB)/ld86 install $(INEXE) lib/copt $(DISTLIB)/copt install $(INDAT) lib/rules.* $(DISTLIB)/i86 + @test ! -f $(DISTLIB)/as86 || rm -f $(DISTLIB)/as86 + @test ! -f $(DISTLIB)/ld86 || rm -f $(DISTLIB)/ld86 install-emu: elksemu install -d $(DIST)/lib @@ -191,12 +203,20 @@ lib-386: bindir ############################################################################## -check_config: +#ifdef GNUMAKE + +check_config: $(MAKEX) $(MAKEC) libc .config.dir -config: +config: $(MAKEX) $(MAKEC) libc config +#else +check_config: $(MAKEX) ; + +config: ; +#endif + makec: echo 'cd $$1 ; shift ; make "$$@"' > makec chmod +x makec @@ -222,5 +242,6 @@ realclean: -@for i in $(CLEANLIST) ; do $(MAKEC) $$i $@ ; true ; done rm -rf bin lib rm -f include + rm -f makec ############################################################################## |