VERSION=1.0 DESTDIR=/ CC=gcc LIBRARIES=gconf-2.0 hildon-1 hildon-fm-2 gtk+-2.0 libosso gdk-2.0 gconf-2.0 gnome-vfs-2.0 gstreamer-0.10 CFLAGS= -Wall `pkg-config --cflags $(LIBRARIES)` CDEBUG=-g # libgstinterfaces-0.10 is defined here to work around # a bug in gstreamer's pkg-config LDFLAGS=`pkg-config --libs $(LIBRARIES)` -lgstinterfaces-0.10 ifdef DEBUG CFLAGS += $(CDEBUG) LDFLAGS += $(CDEBUG) endif OBJ=maemo-barcode.o Simon_1D.o EXEC=maemo-barcode all: $(EXEC) # This rule uses GNU make implicit rules, so # examples can be built eg make example_hildonprogram # http://www.gnu.org/software/make/manual/make.html#Implicit-Rules $(EXEC): $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $(EXEC) $(OBJ) %.o: %.c $(CC) $(CFLAGS) $(LDFLAGS) -c -o $@ $< clean: -rm -f $(EXEC) $(OBJ)