prefix = $(HOME)
DESTDIR = $(prefix)/bin
+NAME = subsurface
LIBDIVECOMPUTERDIR = /usr/local
LIBDIVECOMPUTERINCLUDES = $(LIBDIVECOMPUTERDIR)/include/libdivecomputer
parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \
gtk-gui.o
-subsurface: $(OBJS)
- $(CC) $(LDFLAGS) -o subsurface $(OBJS) $(LIBS)
+$(NAME): $(OBJS)
+ $(CC) $(LDFLAGS) -o $(NAME) $(OBJS) $(LIBS)
-install: subsurface
+install: $(NAME)
$(INSTALL) -d -m 755 '$(DESTDIR)'
- $(INSTALL) subsurface '$(DESTDIR)'
+ $(INSTALL) $(NAME) '$(DESTDIR)'
parse-xml.o: parse-xml.c dive.h
$(CC) $(CFLAGS) `pkg-config --cflags glib-2.0` -c `xml2-config --cflags` parse-xml.c
uemis.o: uemis.c uemis.h
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0 glib-2.0` -c uemis.c
+
+clean:
+ rm -f $(OBJS) *~ $(NAME)