blob: 7a3cdc055b0703503db4ab8b595fd2095103c1e7 (
plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Example: how to write a makefile
#######################################################
# Suppose you compiled the TV library in your home
# directory by doing:
#
# ./configure
# make
#
# and dind't want to install it in the system with
#
# make install
#
# With this basic makefile you have the opportunity
# to compile and link your programs against the TV
# library you have in your home directory. Copy
# this file as Makefile in your application directory
# and then adjust the following strings according to
# your needs.
#
# To compile your program type:
#
# make
#
# To remove backup and object files type:
#
# make clean
#######################################################
########################################
# Insert here the library base directory
########################################
LIBPATH = /home/sergio/tvision-0.8
######################################################
# Insert here the object files which form your program
######################################################
OBJS = validator.o
################################
# Write here the executable name
################################
OUT = my_prog
################################################
# Any other library required by your application
################################################
OTHERLIBS =
########################
# Do not touch down here
########################
CXX = g++
CFLAGS = -g -O2 -I$(LIBPATH) -I$(LIBPATH)/lib
LIBS = $(LIBPATH)/lib/libtvision.a -lncurses -lgpm $(OTHERLIBS)
.cc.o:
$(CXX) $(CFLAGS) -c $<
all: $(OBJS)
$(CXX) -o $(OUT) $(OBJS) $(LIBS)
.PHONY:
clean:
rm -f *.o *~ $(OUT)
|