TARGETS = browser delete PREFIX = /usr/local DESTDIR = BINDIR = $(PREFIX)/bin INCLUDEDIR= $(PREFIX)/include CC = cc CFLAGSF = -W -Wall -ansi -I .. `pkg-config gtk+-2.0 --cflags` CFLAGS = -g -O2 LDFLAGSF= `pkg-config gtk+-2.0 --libs` -l System RM = rm -f MKDIR = mkdir -p INSTALL = install all: $(TARGETS) browser_OBJS = browser.o mime.o main.o browser_CFLAGS = $(CFLAGSF) $(CFLAGS) browser: $(browser_OBJS) $(CC) $(LDFLAGSF) $(LDFLAGS) -o browser $(browser_OBJS) delete_OBJS = delete.o delete_CFLAGS = $(CFLAGSF) $(CFLAGS) delete: $(delete_OBJS) $(CC) $(LDFLAGSF) $(LDFLAGS) -o delete $(delete_OBJS) browser.o: browser.c mime.h browser.h ../config.h $(CC) $(browser_CFLAGS) -c browser.c mime.o: mime.c browser.h mime.h $(CC) $(browser_CFLAGS) -c mime.c main.o: main.c browser.h mime.h $(CC) $(browser_CFLAGS) -c main.c delete.o: delete.c $(CC) $(delete_CFLAGS) -c delete.c clean: $(RM) $(browser_OBJS) $(delete_OBJS) distclean: clean $(RM) $(TARGETS) install: all $(MKDIR) $(DESTDIR)$(BINDIR) $(INSTALL) -m 0755 browser $(DESTDIR)$(BINDIR)/browser $(INSTALL) -m 0755 delete $(DESTDIR)$(BINDIR)/delete uninstall: $(RM) $(DESTDIR)$(BINDIR)/browser $(RM) $(DESTDIR)$(BINDIR)/delete .PHONY: all clean distclean install uninstall