69 lines
926 B
Text
69 lines
926 B
Text
|
#
|
||
|
# getMCH - SunOS fork
|
||
|
#
|
||
|
|
||
|
#
|
||
|
# Programs made by this makefile
|
||
|
#
|
||
|
PROGS = makeSCF
|
||
|
|
||
|
#
|
||
|
# SWITCHES - see ted makefile
|
||
|
#
|
||
|
#SWITCHES = -DAUTO_CLIP -DDEF_OUT -DSAVE_EDITS
|
||
|
|
||
|
#
|
||
|
# Where the wild things are
|
||
|
#
|
||
|
SRC = .
|
||
|
TEDSRC = $(SRC)/../ted
|
||
|
|
||
|
#
|
||
|
# Sun
|
||
|
#
|
||
|
CC= gcc
|
||
|
GCCWARNINGS = -Wreturn-type -Wunused -Wswitch -Wcomment -W -Wformat \
|
||
|
-Wuninitialized
|
||
|
CFLAGS= -g -ansi -pedantic $(GCCWARNINGS) $(SWITCHES) -I$(TEDSRC) -I/usr/openwin/include
|
||
|
# gcc2.1 -static, cc -Bstatic, else nothing
|
||
|
LIBFLAGS = -static
|
||
|
|
||
|
%.o : $(SRC)/%.c
|
||
|
$(CC) $(CFLAGS) -c $<
|
||
|
|
||
|
%.o : $(TEDSRC)/%.c
|
||
|
$(CC) $(CFLAGS) -c $<
|
||
|
|
||
|
#
|
||
|
# Object files
|
||
|
#
|
||
|
OBJS=\
|
||
|
makeSCF.o\
|
||
|
writeSCF.o\
|
||
|
seq.o\
|
||
|
seqIOPlain.o\
|
||
|
seqIOABI.o\
|
||
|
seqIOEdit.o\
|
||
|
seqIOALF.o\
|
||
|
seqIOSCF.o\
|
||
|
seqOutput.o\
|
||
|
opp.o\
|
||
|
fpoint.o\
|
||
|
match.o\
|
||
|
mach-io.o
|
||
|
|
||
|
|
||
|
#
|
||
|
# Linking
|
||
|
#
|
||
|
makeSCF: $(OBJS)
|
||
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(LIBFLAGS)
|
||
|
|
||
|
#
|
||
|
# Special dependencies
|
||
|
#
|
||
|
all: $(PROGS)
|
||
|
|
||
|
clean:
|
||
|
/bin/rm -f $(OBJS) $(PROGS) *~
|