-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 783 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 783 Bytes
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
TARGET := osd
SRCS := simpleOSD.cpp
OBJS := ${SRCS:.cpp=.o}
DEPS := ${SRCS:.cpp=.dep}
DESTDIR := /
PREFIX := /usr/
CXXFLAGS = -I../ -O3 -Wall `pkg-config --cflags gtk+-2.0`
LDFLAGS = -s
LIBS = -lxosd `pkg-config --libs gtk+-2.0`
.PHONY: all clean distclean
all: ${TARGET}
ifneq (${XDEPS},)
include ${XDEPS}
endif
${TARGET}: ${OBJS}
${CXX} ${LDFLAGS} -o $@ $^ ${LIBS}
${OBJS}: %.o: %.cpp %.dep
${CXX} ${CXXFLAGS} -o $@ -c $<
${DEPS}: %.dep: %.cpp Makefile
${CXX} ${CXXFLAGS} -MM $< > $@
clean:
-rm -f *~ *.o ${TARGET}
install:
mkdir -p ${DESTDIR}/${PREFIX}/bin
cp ${TARGET} ${DESTDIR}/${PREFIX}/bin
uninstall:
rm ${DESTDIR}/${PREFIX}/${TARGET}
distclean: clean