X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=aoview%2FMakefile;h=ca636065a37c6e4c58c012c645855f6fc0bb3d3b;hb=dcfcf3bec6788460b6fe8c239c80bad4526bd15b;hp=253a160ed89dd40158313a269cd3336f0bdb950b;hpb=be3f4fed7b863c8cdaabe32b61b65a8b3cd11355;p=fw%2Faltos diff --git a/aoview/Makefile b/aoview/Makefile index 253a160e..ca636065 100644 --- a/aoview/Makefile +++ b/aoview/Makefile @@ -1,9 +1,12 @@ +VERSION=$(shell git describe) MODULES=gtk+-2.0 libglade-2.0 gconf-2.0 INCLUDES=$(shell pkg-config --cflags $(MODULES)) -I.. WARN= -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -CFLAGS=$(INCLUDES) -O0 -g $(WARN) +CFLAGS=$(INCLUDES) -O0 -g $(WARN) -DAOVIEW_VERSION='"$(VERSION)"' LIBS=$(shell pkg-config --libs $(MODULES)) -lm +BIN=/usr/local/bin + SRC = \ aoview_main.c \ aoview_dev.c \ @@ -14,7 +17,8 @@ SRC = \ aoview_convert.c \ aoview_log.c \ aoview_table.c \ - aoview_util.c + aoview_util.c \ + aoview_file.c INC = \ aoview.h @@ -29,5 +33,15 @@ $(PROG): $(OBJ) $(OBJ): $(INC) +aoview_main.o: aoview_glade.h + clean: rm -f $(OBJ) $(PROG) + +install: $(BIN)/aoview + +$(BIN)/aoview: aoview + install aoview $(BIN) + +aoview_glade.h: aoview.glade + sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@