Last change
on this file since 4058 was 2735, checked in by cmv, 20 years ago |
memorisation makefile old-fashion Mgr cmv 19/05/05
|
File size:
1.2 KB
|
Line | |
---|
1 | # Makefile for building JTC JThreads/C++
|
---|
2 | # Source code from Object Oriented Concepts www.ooc.com
|
---|
3 | # R. Ansari LAL-IN2P3/CNRS 05/2000
|
---|
4 |
|
---|
5 | CXX := g++
|
---|
6 | ifdef SOPHYACXX
|
---|
7 | CXX := $(SOPHYACXX)
|
---|
8 | endif
|
---|
9 |
|
---|
10 | SYSNOM = $(shell echo `uname`)
|
---|
11 | SYSNOMD = $(shell echo `uname | sed 's/-//'`)
|
---|
12 | SYSCOMPNOM = $(SYSNOM)-$(CXX)
|
---|
13 |
|
---|
14 | INC = $(JTCBASEREP)/Include
|
---|
15 | LIB = $(JTCBASEREP)/$(SYSCOMPNOM)/Libs
|
---|
16 | SLB = $(JTCBASEREP)/$(SYSCOMPNOM)/ShLibs
|
---|
17 |
|
---|
18 | SYSLIBS = -lpthread
|
---|
19 | CPPFLAGS := -I$(INC) -D$(SYSNOMD)
|
---|
20 | ifeq ($(CXX),cxx)
|
---|
21 | CPPFLAGS := $(CPPFLAGS) -pthread
|
---|
22 | endif
|
---|
23 |
|
---|
24 | PROGS = hello clock diner conprod
|
---|
25 |
|
---|
26 | all : $(PROGS)
|
---|
27 | echo 'hello clock diner conprod built'
|
---|
28 |
|
---|
29 | clean :
|
---|
30 | rm -f *.o
|
---|
31 | rm -f $(PROGS)
|
---|
32 |
|
---|
33 | hello : hello.o
|
---|
34 | $(CXX) -o hello hello.o -L$(SLB) -lJTC $(SYSLIBS)
|
---|
35 | hello.o : hello.cc
|
---|
36 | $(CXX) $(CPPFLAGS) -c -o hello.o hello.cc $(SYSLIBS)
|
---|
37 |
|
---|
38 | diner : diner.o
|
---|
39 | $(CXX) -o diner diner.o -L$(SLB) -lJTC $(SYSLIBS)
|
---|
40 | diner.o : diner.cc
|
---|
41 | $(CXX) $(CPPFLAGS) -c -o diner.o diner.cc
|
---|
42 |
|
---|
43 | clock : clock.o
|
---|
44 | $(CXX) -o clock clock.o -L$(SLB) -lJTC $(SYSLIBS)
|
---|
45 | clock.o : clock.cc
|
---|
46 | $(CXX) $(CPPFLAGS) -c -o clock.o clock.cc
|
---|
47 |
|
---|
48 | conprod : conprod.o
|
---|
49 | $(CXX) -o conprod conprod.o -L$(SLB) -lJTC $(SYSLIBS)
|
---|
50 | conprod.o : conprod.cc
|
---|
51 | $(CXX) $(CPPFLAGS) -c -o conprod.o conprod.cc
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.