# # Makefile for wxTimeCalc # # Define all our applications here APP = wxTimeCalc # What does make all mean? all: $(APP) # some standard stuff CC = g++ INCLUDE = . CFLAGS = -g -ansi `wx-config --cxxflags` # for linking LINK = `wx-config --libs` # # program files # wxTimeCalc: wxtimecalc.o frame.o day.o $(CC) $(LINK) -o wxTimeCalc wxtimecalc.o frame.o day.o # # object files # wxtimecalc.o: wxtimecalc.cpp defines.h $(CC) -I$(INCLUDE) $(CFLAGS) $(DEFINE) -c wxtimecalc.cpp frame.o: frame.cpp frame.h defines.h $(CC) -I$(INCLUDE) $(CFLAGS) $(DEFINE) -c frame.cpp day.o: day.cpp day.h defines.h $(CC) -I$(INCLUDE) $(CFLAGS) $(DEFINE) -c day.cpp # # Cleanup # clean: @rm -f *.o $(APP)