File: makefile

package info (click to toggle)
galib 2.4.7-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,216 kB
  • ctags: 3,153
  • sloc: cpp: 23,666; ansic: 520; makefile: 247; sh: 93
file content (45 lines) | stat: -rw-r--r-- 1,303 bytes parent folder | download | duplicates (4)
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
# makefile for compiling some of g++ library components with GAlib extensions
# Copyright 1995 Massachusetts Institute of Technology
# mbwall 10sep95
#
#   This code can be freely distributed and modified under the terms of the GNU
# public license.   See the COPYING file for details.

CC_INC_DIR=/usr/include/CC
INC_DIRS= -I. -I../..
LIB_DIRS= -L. -L../../ga
CCFLAGS= +w +pp -O -g $(INC_DIRS)
C++C= DCC

LIB= libbitstr.a
SRCS= gnuex.C bitstr.C
OBJS= gnuex.o bitstr.o
GNUSRCS= AllocRing.cc Obstack.cc BitString.cc builtin.cc bitand.c bitany.c bitblt.c bitclear.c bitcopy.c bitcount.c bitinvert.c bitlcomp.c bitset1.c bitxor.c error.cc
GNUOBJS= AllocRing.o  Obstack.o  BitString.o  builtin.o  bitand.o bitany.o bitblt.o bitclear.o bitcopy.o bitcount.o bitinvert.o bitlcomp.o bitset1.o bitxor.o error.o

.SUFFIXES: .o .c
.SUFFIXES: .o .cc
.SUFFIXES: .o .C
.c.o:
	$(C++C) $(CCFLAGS) -c $<
.cc.o:
	$(C++C) $(CCFLAGS) -c $<
.C.o:
	$(C++C) $(CCFLAGS) -c $<

gnuex: $(OBJS) $(LIB)
	$(C++C) $(PF) $(OBJS) -o $@ $(LIB_DIRS) -lbitstr -lga -lm

$(LIB): $(GNUOBJS)
	ar rv $(LIB) $?
	@echo $(LIB) is now up-to-date
.c.a:;
.C.a:;

clean:
	rm -rf gnuex $(LIB) *~ *.bak *.out *.o core bog.dat

depend:
	makedepend -I$(CC_INC_DIR) $(INC_DIRS) $(SRCS) $(GNUSRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.