# $Id: makefile,v 1.14 2008/04/04 17:27:31 remko Exp $ # # makefile for gshhs directory # Does not depend on GMT src or libraries # #------------------------------------------------------------------------------- # !! STOP EDITING HERE, THE REST IS FIXED !! #------------------------------------------------------------------------------- GMTSRCDIR = ../ include $(GMTSRCDIR)makegmt.macros include $(GMTSRCDIR)gmtalldeps.macros PROGS_O = gshhs.o gshhs_dp.o gshhstograss.o MAN1 = $(PROGS_O:.o=.1) #------------------------------------------------------------------------------- # software targets #------------------------------------------------------------------------------- all: $(PROGS) install: all $(INSTALL) $(PROGS) $(bindir) uninstall: cd $(bindir); \rm -f $(PROGS) install-man: $(MAN1) $(INSTALL) -m 644 $(MAN1) $(mandir)/man1 uninstall-man: cd $(mandir)/man1; \rm -f $(MAN1) spotless:: clean clean: \rm -f *.o *% $(PROGS) #------------------------------------------------------------------------------- # object file dependencies #------------------------------------------------------------------------------- $(PROGS_O): gshhs.h #------------------------------------------------------------------------------- # program rules #------------------------------------------------------------------------------- gshhs$(EXE): gshhs.o gshhs_dp$(EXE): gshhs_dp.o gshhstograss$(EXE): gshhstograss.o $(PROGS): $(CC) $(LDFLAGS) $(@:.exe=).o $(LIBS) -o $@ $(COMPRESS) $@