# Makefile for cqc/qcread # CC = gcc LD = $(CC) LDFLAGS = PROG = qcread # for Linux # CFLAGS = -O -DLinux INCLUDES = cqc.h OBJS = cqc.o # # end Linux options ## for FreeBSD ## #CFLAGS = -g -O -Ignu-getopt -DFreeBSD #INCLUDES = cqc.h gnu-getopt/getopt.h #OBJS = cqc.o gnu-getopt/getopt.o gnu-getopt/getopt1.o ## ## end FreeBSD options all: $(PROG) depend: echo "No unobvious dependencies" clean: rm -f $(PROG) *.o gnu-getopt/*.o *.core core *.bak *~ *.flc qcread: qcread.o $(OBJS) $(INCLUDES) $(LD) $(LDFLAGS) -o qcread qcread.o $(OBJS) -lm qcread.o: qcread.c $(INCLUDES) $(CC) $(CFLAGS) -c qcread.c cqc.o: cqc.c $(INCLUDES) $(CC) $(CFLAGS) -c cqc.c