make linux and freebsd compile again
[xombrero.git] / freebsd / Makefile
blob34c2b6f86ef25ab3d2693aa20f4a3fa8ba16d4e2
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
19 perl ../js-merge-helper.pl ../hinting.js ../input-focus.js > \
20 ../javascript.h
22 xxxterm.o: ../xxxterm.o
24 marco.o: ../marco.o
26 inspector.o: ../inspector.o
28 ../xxxterm.o: ../javascript.h
30 xxxterm: xxxterm.o freebsd.o marco.o inspector.o
31 $(CC) $(LDFLAGS) -o $@ *.o $+ $(LDADD)
33 install: all
34 install -m 755 -d $(DESTDIR)$(BINDIR)
35 install -m 755 -d $(DESTDIR)$(LIBDIR)
36 install -m 755 -d $(DESTDIR)$(MANDIR)/man1
37 install -m 755 xxxterm $(DESTDIR)$(BINDIR)
38 install -m 644 ../xxxterm.1 $(DESTDIR)$(MANDIR)/man1/xxxterm.1
40 clean:
41 rm -f xxxterm *.o
42 rm -f javascript.h
44 .PHONY: all install clean