summaryrefslogtreecommitdiffstats
path: root/vmchooser/Makefile
blob: 81cdfa944de65297859c6aa33896cfa8238c0e6d (plain) (blame)
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
32
33

STATIC=# -static
CXX=g++
CFLAGS=-c -O2 -I../fltk-2/include/ -I. -Wall -g3
XMLFLAG=`xml2-config --cflags`
BOOST=-lboost_regex-s
LDFLAGS=-L../fltk-2/lib/ ../fltk-2/lib/libfltk2.a -lpng ../fltk-2/lib/libfltk2_images.a -ljpeg -lz -lXi -lXinerama -lpthread -lm -lXext -lsupc++ -lXrender -lfontconfig -lxml2 -lXft -lXdmcp -lXau -ldl -lz -lfreetype -lX11

all: main SWindow readXmlDir readLinSess runImage
	${CXX} ${STATIC} main.o SWindow.o runImage.o readLinSess.o readXmlDir.o -o vmchooser ${LDFLAGS} ${BOOST}
	strip vmchooser
	
SWindow:
	${CXX} ${CFLAGS} -c SWindow.cxx -o SWindow.o

readXmlDir:
	${CXX} ${CFLAGS} ${XMLFLAG} -o readXmlDir.o readXmlDir.cxx

readLinSess:
	${CXX} ${CFLAGS} -o readLinSess.o readLinSess.cxx

runImage:
	${CXX} ${CFLAGS} -o runImage.o runImage.cxx

main:
	${CXX} ${CFLAGS} -c main.cxx -o main.o


clean:
	rm -rf *.o test

install:
	cp vmchooser ../../../../../../openslx/trunk/os-plugins/plugins/vmchooser/files/