# # Glaum Project Makefile # # # user-modifiable parameters # # if you specify the gtk-config path, make sure you add a # trailing slash(/)! GTK_CONFIG_PATH = # Where do you want the binary installed? Trailing / optional INSTALL_DIR = /usr/local/bin # compiler command, usually not necessary to change CC = g++ # # Make changes to the below at your own risk! # PROJECT = glaum LINK = -L. INCLUDE = -I. LIBS = `$(GTK_CONFIG_PATH)gtk-config --libs` CFLAGS = -O -ansi `$(GTK_CONFIG_PATH)gtk-config --cflags` OBJS = main.o global.o interface.o callback.o utils.o convert.o batch.o burn.o status.o DEFINE = # # main project definitions # all: $(PROJECT) $(PROJECT): $(OBJS) $(CC) -o $(PROJECT) $(OBJS) $(LINK) $(LIBS) main.o: main.cxx global.h prototype.h $(CC) -c main.cxx $(INCLUDE) $(CFLAGS) global.o: global.cxx global.h defines.h $(CC) -c global.cxx $(INCLUDE) $(CFLAGS) utils.o: utils.cxx prototype.h defines.h $(CC) -c utils.cxx $(INCLUDE) $(DEFINE) $(CFLAGS) callback.o: callback.cxx global.h prototype.h defines.h $(CC) -c callback.cxx $(INCLUDE) $(CFLAGS) interface.o: interface.cxx defines.h prototype.h global.h $(CC) -c interface.cxx $(INCLUDE) $(CFLAGS) # # notebook pages # convert.o: convert_page.cxx $(CC) -o convert.o -c convert_page.cxx $(INCLUDE) $(CFLAGS) batch.o: batch_page.cxx $(CC) -o batch.o -c batch_page.cxx $(INCLUDE) $(CFLAGS) burn.o: burn_page.cxx $(CC) -o burn.o -c burn_page.cxx $(INCLUDE) $(CFLAGS) status.o: status_page.cxx $(CC) -o status.o -c status_page.cxx $(INCLUDE) $(CFLAGS) # # cleanup # clean: @rm -f *.o # # install # install: cp $(PROJECT) $(INSTALL_DIR) # # remove # uninstall: remove deinstall: remove remove: rm $(INSTALL_DIR)/$(PROJECT)