File: Makefile

package info (click to toggle)
josm-plugins 0.0.svn22363-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,448 kB
  • ctags: 2,481
  • sloc: java: 16,454; xml: 2,311; cpp: 135; makefile: 63; ansic: 37; sh: 1
file content (31 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/make

ifneq ($(windir),)
MINGWPATH = C:\\PROGRA~1\\mingw\\bin\\
QTPATH    = C:\\PROGRA~1\\qt\\

CPP       = ${MINGWPATH}c++.exe
MOC       = ${QTPATH}bin\\moc.exe
RM        = del
CFLAGS    = -W -O2 -I${QTPATH}include
LDFLAGS   = -L${QTPATH}lib
LDLIBS    = -lQtCore4 -lQtWebKit4 -lQtGui4 -lQtNetwork4
else
MOC       = moc
#MOC       = /usr/share/qt4/bin/moc
CPP       = gcc

PACKAGES  = QtCore QtGui QtWebKit QtNetwork
CFLAGS    = -W -O2 `pkg-config --cflags ${PACKAGES}`
LDFLAGS   = `pkg-config --libs-only-L ${PACKAGES}`
LDLIBS    = `pkg-config --libs-only-l ${PACKAGES}`
endif

webkit-image: webkit-image.cpp webkit-image.h
	$(CPP) -o $@ $(CFLAGS) $(LDFLAGS) webkit-image.cpp $(LDLIBS)

webkit-image.h: webkit-image.cpp
	$(MOC) webkit-image.cpp >$@

clean:
	${RM} *.o webkit-image webkit-image.h