File: makefile

package info (click to toggle)
cigi-ccl 3.3.3a%2Bsvn818-10
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 7,332 kB
  • sloc: cpp: 62,566; makefile: 541; ruby: 400; ansic: 313; sh: 68
file content (77 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (2)
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
73
74
75
76
77
#################################
#
#  This makefile is used to create the CigiMiniHost Executable
#  It depends on the variables CC, CPP, F77 and 
#  the CFLAGS, CCFLAGS, FFLAGS being defined, along with
#  LIBDIR to indicate the current platform/option value.
#
#################################

CPP=g++
cc=gcc

LIBDIR =LINUX_9

CCL_INC=`pkg-config --cflags cigicl`

TINY_XML=../tinyxml

INCLUDES=$(CCL_INC) -I$(TINY_XML)


LIB_FILES = $(TINY_XML)/TinyXML.a


CC_OPTS= -Wall -g -D__cplusplus
C_OPTS= -g

CFLAGS  = $(C_OPTS) $(INCLUDES)
CCFLAGS = $(CC_OPTS) $(INCLUDES)

OBJ_FILES=MiniHost.o \
DefaultProc.o \
SOFP.o \
AnimStop.o \
Network.o

.SUFFIXES: .cpp .c
 
.cpp.o:
	 $(CPP) $(CC_OPTS) $(INCLUDES) -c $<



LDFLAGS = -lc
LD = g++

all: CigiMiniHost

clean:
	rm -f *.o
	rm -f *.so
	rm CigiMiniHost

depend:
	makedepend -f makefile $(INCLUDES) \
	   ./MiniHost.cpp \
	   ./DefaultProc.cpp \
	   ./SOFP.cpp \
	   ./AnimStop.cpp \
	   ./Network.cpp
	build_dependencies -f makefile -s ./MiniHost.cpp
#
#  How to make MiniHost
#

CigiMiniHost: makefile $(OBJ_FILES) $(LIB_FILES)
	$(LD) \
	-o CigiMiniHost \
	$(OBJ_FILES) \
	$(LIB_FILES) -lm -lpthread \
	`pkg-config --libs cigicl`


#
#
# DO NOT DELETE