File: Makefile

package info (click to toggle)
icomlib 1.0.1-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,716 kB
  • ctags: 1,363
  • sloc: cpp: 4,848; makefile: 533; sh: 181; ansic: 145
file content (87 lines) | stat: -rw-r--r-- 2,826 bytes parent folder | download
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
78
79
80
81
82
83
84
85
86
87
######
# automagically built by ./configure
######

SRCDIR	=/home/bottoms/icomlib-1.0.1
PREFIX	=/usr
P_DEBUG =-O2
P_CC	=gcc
P_CXX	=g++
P_SYS	=-DLinux
P_MOC	=/usr/bin/moc
P_QTLIB	=/usr/lib/qt3/lib
P_QTINC	=/usr/lib/qt3/include
P_LINKER=g++
P_LINK	=g++
P_QTOK	=y
P_GUISTYLE=-DSGI_STYLE

# linux configuration file

P_LINKER=$(P_CXX)
P_X11=/usr/X11R6
P_LFLAGS_PCOMM=-shared -Wl,-soname,libpcomm.so.1
P_LFLAGS_PCP=-shared -Wl,-soname,libpcp.so.1
P_LFLAGS_PLOG=-shared -Wl,-soname,libplog.so.1
P_LINK=$(P_LINKER)
#############################################################################
# Makefile for building targets in sub directories.
#############################################################################

MAKEFILE=	Makefile
SUBDIRS	=	include \
		src
LIBS	=	-L$(SRCDIR)/lib -lpcomm -lpcp -lplog
INCPATH	=	-I$(SRCDIR)/include -I/usr/include/qt3

all: .buildopts $(SUBDIRS)

$(SUBDIRS): FORCE
	cd $@; $(MAKE)

clean:
	for i in $(SUBDIRS); \
	do ( cd $$i ;\
		 $(MAKE) clean ) ; done

distclean: clean
	-rm -f `find . -name Makefile -print`

install: all 
	@echo "-----------------------------------------------------"
	@echo "| installing under $(PREFIX)/bin the binaries"
	@echo "-----------------------------------------------------"
	install -m 0755 -g bin -o root -d $(PREFIX)/bin
	install -m 0755 -g bin -o root -b -S old -s $(SRCDIR)/bin/pcr $(PREFIX)/bin 
	install -m 0755 -g bin -o root -b -S old -s $(SRCDIR)/bin/pcroff $(PREFIX)/bin
	install -m 0755 -g bin -o root -b -S old -s $(SRCDIR)/bin/qpcr1k $(PREFIX)/bin
	@echo "-----------------------------------------------------"
	@echo "| done installing the binaries "
	@echo "-----------------------------------------------------"
	@echo "| installing under $(PREFIX)/lib the libraries"
	@echo "-----------------------------------------------------"
	install -m 0755 -g bin -o root -d $(PREFIX)/lib
	install -m 0644 -g bin -o root -s $(SRCDIR)/lib/lib* $(PREFIX)/lib
	@echo "-----------------------------------------------------"
	@echo "| done installing the libraries "
	@echo "-----------------------------------------------------"
	@echo "| installing under $(PREFIX)/include the headers"
	@echo "-----------------------------------------------------"
	install -m 0755 -g bin -o root -d $(PREFIX)/include
	install -m 0644 -g bin -o root $(SRCDIR)/include/*.h $(PREFIX)/include
	@echo
	@echo "***********************************************"
	@echo "  WARNING! Dont forget to add $(PREFIX)/lib   "
	@echo "           to your LD_LIBRARY_PATH or run            "
	@echo "		  'ldconfig' as root on the system"
	@echo "***********************************************"
	@echo

#.buildopts: Makefile
#	@echo
#	@echo " 	You must run configure script before "
#	@echo " 	you can build the library "
#	@echo " 	Make will now abort with an error "
#	@echo

FORCE: