home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-01-18 | 992 b | 45 lines |
- SOURCEDIR=../../sources/nix_main
-
- OBJECTS=__nocommandline.o _main.o
-
- OPTIONS=-I $(SOURCEDIR)/../headers $(CFLAGS)
-
- vpath %.c $(SOURCEDIR)
-
- REDEF=-D _DOSBase=___DOSBase \
- -D _UtilityBase=___UtilityBase \
- -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
- -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
- -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
- -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
- -D _LocaleBase=___LocaleBase
-
- #Use private library bases to avoid naming collisions
- %.o: %.c
- gcc $(OPTIONS) -S $^ -o $*.S 2>&1|tee $*.err
- gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
- gcc $(OPTIONS) $*2.S -c -o $*.o
- -rm $*.S $*2.S
- -if test ! -s $*.err; then rm $*.err; fi
-
- .PHONY: all filelist subdirs clean veryclean
-
- all: libnix_main.a
-
- filelist:
-
- subdirs:
-
- clean:
- -rm *.o *.err
-
- veryclean: clean
- -rm libnix_main.a
-
- libnix_main.a: $(OBJECTS) $(SOURCEDIR)/makefile
- -rm $@
- ar -q /tmp/$@ $(OBJECTS)
- ranlib /tmp/$@
- cp /tmp/$@ .
- rm /tmp/$@
-