ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mintv/Makefile
Revision: 1.1
Committed: 2003-02-08T17:51:46Z (21 years, 9 months ago) by cebix
Branch: MAIN
Branch point for: cebix
Log Message:
Initial revision

File Contents

# Content
1 # Config
2 CXX = c++
3 CFLAGS = -g -O2
4 CPPFLAGS = -I/usr/X11R6/include
5 LDFLAGS = -g -L/usr/X11R6/lib
6 LIBS = -lX11 -lXext -lXt -lXv -lXaw
7 SHELL = /bin/sh
8
9 ## Files
10 APP = mintv
11 SRCS = mintv.cpp
12
13 ## Rules
14 all: $(APP)
15
16 OBJS = $(addsuffix .o, $(basename $(SRCS)))
17 DEPS = $(addprefix .deps/, $(addsuffix .P, $(basename $(SRCS))))
18
19 $(APP): .deps $(OBJS)
20 $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
21
22 %.o: %.cpp
23 $(CXX) $(CFLAGS) $(CPPFLAGS) -Wp,-MD,.deps/$(*F).P -o $@ -c $<
24
25 clean:
26 rm -f $(OBJS) $(APP)
27 rm -rf .libs
28
29 distclean: clean
30 rm -rf .deps
31
32 .deps:
33 @[ -d .deps ] || mkdir .deps >/dev/null 2>&1
34
35 -include $(DEPS)