FLAGS = -O2 -Wall # FLAGS = -g -Wall # FLAGS = -g -DDEBUG -Wall LOBJS = atom.o bond.o term.o group.o all: menu main menu: menu.o getword.o $(LOBJS) gcc $(FLAGS) -o menu menu.o getword.o $(LOBJS) -lm main: main.o $(LOBJS) gcc $(FLAGS) -o main main.o $(LOBJS) -lm clean: rm -f core libmol.a *.o *~ main menu data libmol.a: $(LOBJS) ar rcv libmol.a $(LOBJS) ranlib libmol.a .c.o: gcc $(FLAGS) -c -o $@ $(@:.o=.c) atom.o: atom.c atom.h bond.o: bond.c bond.h term.o: term.c term.h atom.h group.o: group.c group.h atom.h bond.h term.h main.o: main.c atom.h bond.h term.h group.h menu.o: menu.c atom.h bond.h term.h group.h getword.h getword.o: getword.c getword.h