# Generated automatically from Makefile.in by configure.
include ../config.mk
srcdir = .

OBJS = main.o go.o session.o callbacks.o encoding.o moz_callbacks.o support.o ipc.o bookmarks.o interface.o interface-notebook.o history.o crash.o skipstone-config.o context.o skipstone-plugin.o skipstone-print.o  debug.o mozilla.o

DOWNLOADOBJS = skipdownload.o

all: skipstone-bin skipdownload
	(cd ../locale && ${MAKE} all)
	chmod 755 skipstone

skipstone-bin: $(OBJS)
	$(CXX) $(OBJS) -o $@ $(LDFLAGS) $(MOZILLA_LIBS)

skipdownload: $(DOWNLOADOBJS)
	$(CC) $< -o $@ $(GTK_LIBS)

clean:
	(cd ../locale && ${MAKE} clean)
	(cd ../plugins && ${MAKE} clean)
	rm -f *~ *.o core skipstone-bin skipdownload

distclean: clean
	rm -f Makefile

dist: clean
	rm -fr /tmp/$(PROG)-$(VERSION)
	cp -r . /tmp/$(PROG)-$(VERSION)
	tar czf ../$(PROG)-$(VERSION).tar.gz -C /tmp/ $(PROG)-$(VERSION)
	rm -rf /tmp/$(PROG)-$(VERSION)

install:
	(cd ../locale && ${MAKE} install)
	$(INSTALL) -d $(PREFIX)/bin
	$(INSTALL) -d $(PREFIX)/share/skipstone
	$(INSTALL) -d $(PREFIX)/share/skipstone/pixmaps
	$(INSTALL) -d $(PREFIX)/share/skipstone/pixmaps/default
	$(INSTALL) -c -m644 $(srcdir)/../pixmaps/*.png $(PREFIX)/share/skipstone/pixmaps/default
	$(STRIP) skipstone-bin
	$(STRIP) skipdownload
	$(INSTALL) -c skipstone-bin $(PREFIX)/bin
	$(INSTALL) -c -m755 skipstone $(PREFIX)/bin
	$(INSTALL) -c skipdownload $(PREFIX)/bin

uninstall:
	rm $(PREFIX)/bin/skipstone-bin
	rm $(PREFIX)/bin/skipstone
	rm $(PREFIX)/bin/skipdownload
	rm -r $(PREFIX)/share/skipstone

main.o: main.c skipstone.h intl.h
callbacks.o: callbacks.c skipstone.h intl.h
moz_callbacks.o: moz_callbacks.c skipstone.h intl.h
support.o: support.c skipstone.h
ipc.o: ipc.c skipstone.h
bookmarks.o: bookmarks.c skipstone.h intl.h
interface.o: interface.c skipstone.h intl.h
interface-notebook.o: skipstone.h intl.h
history.o: history.c skipstone.h intl.h
crash.o: crash.c skipstone.h intl.h
skipstone-config.o: skipstone-config.c skipstone.h intl.h
context.o: context.c skipstone.h intl.h
encoding.o: encoding.c encoding.h skipstone.h intl.h
go.o: go.c skipstone.h intl.h
session.o: session.c skipstone.h intl.h
skipstone-print.o: skipstone-print.c skipstone.h skipstone-print.h
debug.o: debug.c skipstone.h debug.h
mozilla.o: mozilla.cpp
skipstone-plugin.o: skipstone-plugin.c skipstone.h skipstone-plugin.h
SkipStonePrompter.o: SkipStonePrompter.cpp SkipStonePrompter.h
PromptService.o: PromptService.cpp PromptService.h


