home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-08-02 | 1.1 KB | 82 lines |
- #!smake
-
- #
- # Hardware Specifics
- #
-
- # Find out the kind of machine you are on.
- WHICHIP != uname -m
-
- # Set -mp flag for Power Series.
- #if ( $(WHICHIP) == "IP7" )
- MP = -mp
- #else
- MP =
- #endif
-
- # Set the -mips2 flag for the R4000 machines.
- #if ( $(WHICHIP) == "IP17" | $(WHICHIP) == "IP20" )
- MIPS = -mips2
- #else
- MIPS =
- #endif
-
- #
- # Standard Compilation Flags
- #
-
- OPTIMIZER=-O
-
- FFLAGS=$(OPTIMIZER) $(MIPS) $(MP)
- CFLAGS=$(OPTIMIZER) $(MIPS)
-
- FC=/usr/bin/f77
- CC=/usr/bin/cc
-
- FFC = $(FC) $(FFLAGS)
- CFC = $(CC) $(CFLAGS)
-
- #
- # Library used.
- #
-
- #if( ${MIPS} == "-mips2" )
- #if (${MP} == "-mp")
- LIB_DIR= ../mp_mips2
- #else
- LIB_DIR= ../mips2
- #endif
- #elif (${MP} == "-mp")
- LIB_DIR= ../mp_mips1
- #else
- LIB_DIR= ../mips1
- #endif
-
- LDLIBS= -lm $(LIB_DIR)/libconv.a
- TARGETS= fex1 fex2 fex3 cex1 cex2 cex3
-
- all: $(TARGETS)
-
- clean :
- rm -f *.o *.*K* core
-
- rmtargets:
- rm -f $(TARGETS)
-
- clobber:
- make -i clean
- rm -f $(TARGETS)
-
- $(TARGETS): $$@.o
- $(FFC) -mp -o $@ $*.o $(LDLIBS)
-
- .f.o:
- $(FFC) -c $<
- .c.o:
- $(CFC) -c $<
-
- # DO NOT DELETE THIS LINE -- make depend depends on it.
-
- ex2.o: /usr/include/stdio.h /usr/include/math.h /usr/include/svr4_math.h
- ex2.o: conv.h
-