oops, use right list when going backwards should fix fs #247
[xombrero.git] / freebsd / Makefile
blobb5da90f6909390c57a13a6dc9144e9a7b3a74589
1 LIBS= gtk+-2.0 webkit-1.0 libsoup-2.4 gnutls gthread-2.0
3 LDADD= -lutil -lgcrypt
4 GTK_CFLAGS!= pkg-config --cflags $(LIBS)
5 GTK_LDFLAGS!= pkg-config --libs $(LIBS)
6 CFLAGS+= $(GTK_CFLAGS) -O2 -Wall -pthread
7 LDFLAGS+= $(GTK_LDFLAGS) -pthread
9 PREFIX?= /usr/local
10 BINDIR?= $(PREFIX)/bin
11 LIBDIR?= $(PREFIX)/lib
12 MANDIR?= $(PREFIX)/man
14 CC?= cc
16 all: ../javascript.h xxxterm
18 ../javascript.h: ../js-merge-helper.pl ../hinting.js ../autoscroll.js
19 perl ../js-merge-helper.pl ../hinting.js ../input-focus.js \
20 ../autoscroll.js > ../javascript.h
22 xxxterm.o: ../xxxterm.o
24 unix.o: ../unix.o
26 marco.o: ../marco.o
28 whitelist.o: ../whitelist.o
30 settings.o: ../settings.o
32 about.o: ../about.o
34 inspector.o: ../inspector.o
36 cookie.o: ../cookie.o
38 inputfocus.o: ../inputfocus.o
40 history.o: ../history.o
42 completion.o: ../completion.o
44 externaleditor.o: ../externaleditor.o
46 tldlist.o: ../tldlist.o
48 ../xxxterm.o: ../javascript.h
50 xxxterm: xxxterm.o freebsd.o marco.o about.o inspector.o whitelist.o settings.o \
51 cookie.o history.o completion.o inputfocus.o tldlist.o externaleditor.o \
52 unix.o
53 $(CC) $(LDFLAGS) -o $@ *.o $+ $(LDADD)
55 install: all
56 install -m 755 -d $(DESTDIR)$(BINDIR)
57 install -m 755 -d $(DESTDIR)$(LIBDIR)
58 install -m 755 -d $(DESTDIR)$(MANDIR)/man1
59 install -m 755 xxxterm $(DESTDIR)$(BINDIR)
60 install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
62 clean:
63 rm -f xxxterm *.o
64 rm -f javascript.h
66 .PHONY: all install clean