blob: 5e32081c6ee9d97e1477d2fb78c57abb48cfc2ca (
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
34
35
36
37
38
39
|
TARGET := vmchooser
SRCS := $(wildcard *.cxx)
OBJS := ${SRCS:.cxx=.o}
DEPS := ${SRCS:.cxx=.dep}
XDEPS := $(wildcard ${DEPS})
CC = g++
DEBUG_CCFLAGS = -O0 -Wall -I/usr/include -I../fltk-2/include/ -I. `xml2-config --cflags` -ggdb #-ggdb #-Werror
CCFLAGS = -O2 -Wall -I/usr/include -I../fltk-2/include/ -I. `xml2-config --cflags`
LDFLAGS = -L../fltk-2/lib/ -L/usr/lib
LIBS = -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 ../fltk-2/lib/libfltk2.a /usr/lib/libboost_regex-s.a
.PHONY: all clean distclean
all:: ${TARGET}
ifneq (${XDEPS},)
include ${XDEPS}
endif
${TARGET}: ${OBJS}
${CC} ${LDFLAGS} -o $@ $^ ${LIBS}
strip $@
debug: ${OBJS}
${CC} ${LDFLAGS} -o vmchooserdbg $^ ${LIBS}
${OBJS}: %.o: %.cxx %.dep
${CC} ${DEBUG_CCFLAGS} -o $@ -c $<
${DEPS}: %.dep: %.cxx Makefile
${CC} ${CCFLAGS} -MM $< > $@
clean::
rm -f *~ *.o ${TARGET} vmchooserdbg
install:
cp vmchooser ../../../../openslx/trunk/os-plugins/plugins/vmchooser/files/
distclean:: clean
|