~ubuntu-branches/ubuntu/edgy/agrep/edgy

« back to all changes in this revision

Viewing changes to Makefile.solaris

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2005-12-27 17:01:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051227170100-nk2hnq0bnlkbk3q3
Tags: 4.17-2
Added patch to fix FTBS on amd64 (Closes: #344909).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright (c) 1994 Sun Wu, Udi Manber, Burra Gopal.  All Rights Reserved.
 
2
 
 
3
# You might have to change these depending on your machine configuration.
 
4
# AR and RANLIB are the library-archive programs. On Solaris, RANLIB is not
 
5
# required (define it to true) and AR is in /usr/ccs/bin/ar (on our machine!).
 
6
AR            = /usr/ccs/bin/ar #for Solaris
 
7
RANLIB        = true #for Solaris
 
8
 
 
9
# Define HAVE_DIRENT_H to be 1 when you don't have <sys/dir.h> else define it to be 0 (in this case, one of the other 3 flags may need to be defined to be 1).
 
10
HAVE_DIRENT_H = 1
 
11
HAVE_SYS_DIR_H  = 0
 
12
HAVE_SYS_NDIR_H = 0
 
13
HAVE_NDIR_H     = 0
 
14
 
 
15
# Define UTIME to be 1 if you have the utime() routine on your system. Else define it to be 0.
 
16
UTIME = 1
 
17
 
 
18
# Define ISO_CHAR_SET to be 1 if you want to use the international 8bit character set. Else define it to be 0.
 
19
ISO_CHAR_SET = 0
 
20
 
 
21
# You might have to change this depending on your machine configuration.
 
22
CC            = gcc -traditional        #cc
 
23
 
 
24
SHELL = /bin/sh
 
25
 
 
26
# YOU DON'T HAVE TO CHANGE ANYTHING BELOW THIS LINE
 
27
 
 
28
# The binaries will be made in ../bin/. and the agrep library in ../lib
 
29
# You normally don't have to change them.
 
30
BINDIR        = ../bin
 
31
LIBDIR        = ../lib
 
32
TCOMP         = cast
 
33
TCOMPDIR      = ../compress
 
34
AGREPDIR      = ../agrep
 
35
TEMPLATEDIR   = ../libtemplate
 
36
 
 
37
# You can change the target to use the "cast" (compression) library by changing:
 
38
#       all: $(NOTCPROG)
 
39
# to:
 
40
#       all: $(PROG)
 
41
# You must also define DOTCOMPRESSED below to be 1 instead of 0.
 
42
 
 
43
DOTCOMPRESSED = 0
 
44
 
 
45
# Include flags is not a part of CLFAGS and LINKFLAGS since path names from subdirs can be different
 
46
OPTIMIZEFLAGS   = -O
 
47
#PROFILEFLAGS   = -p
 
48
#DEBUGFLAGS     = -g -DBG_DEBUG=1 -DDEBUG=1
 
49
INCLUDEFLAGS    = -I$(AGREPDIR) -I$(TEMPLATEDIR)/include
 
50
DEFINEFLAGS     = -DHAVE_DIRENT_H=$(HAVE_DIRENT_H) -DHAVE_SYS_DIR_H=$(HAVE_SYS_DIR_H) -DHAVE_SYS_NDIR_H=$(HAVE_SYS_NDIR_H) -DHAVE_NDIR_H=$(HAVE_NDIR_H) \
 
51
                  -DUTIME=$(UTIME) -DISO_CHAR_SET=$(ISO_CHAR_SET)
 
52
SUBDIRCFLAGS    = -c $(DEFINEFLAGS) $(OPTIMIZEFLAGS) $(PROFILEFLAGS) $(DEBUGFLAGS)
 
53
MYDEFINEFLAGS   = -DMEASURE_TIMES=0 -DAGREP_POINTER=1 -DDOTCOMPRESSED=$(DOTCOMPRESSED)
 
54
CFLAGS          = $(MYDEFINEFLAGS) $(INCLUDEFLAGS) $(SUBDIRCFLAGS)
 
55
SUBDIRLINKFLAGS = $(PROFILEFLAGS)
 
56
LINKFLAGS       = $(INCLUDEFLAGS) $(SUBDIRLINKFLAGS)
 
57
OTHERLIBS       =
 
58
 
 
59
PROG          = agrep
 
60
NOTCPROG      = notc$(PROG)
 
61
 
 
62
all: $(NOTCPROG)
 
63
        cp $(PROG) $(BINDIR)/.
 
64
 
 
65
LIB           = $(LIBDIR)/lib$(PROG).a
 
66
HDRS          = agrep.h checkfile.h re.h defs.h config.h
 
67
TCOMPLIBOBJ   = \
 
68
                $(TCOMPDIR)/hash.o \
 
69
                $(TCOMPDIR)/string.o \
 
70
                $(TCOMPDIR)/misc.o \
 
71
                $(TCOMPDIR)/quick.o \
 
72
                $(TCOMPDIR)/cast.o \
 
73
                $(TCOMPDIR)/uncast.o \
 
74
                $(TCOMPDIR)/tsimpletest.o \
 
75
                $(TCOMPDIR)/tbuild.o\
 
76
                $(TCOMPDIR)/tmemlook.o
 
77
OBJS          = \
 
78
                follow.o        \
 
79
                asearch.o       \
 
80
                asearch1.o      \
 
81
                agrep.o         \
 
82
                bitap.o         \
 
83
                checkfile.o     \
 
84
                compat.o        \
 
85
                maskgen.o       \
 
86
                parse.o         \
 
87
                checksg.o       \
 
88
                preprocess.o    \
 
89
                delim.o         \
 
90
                asplit.o        \
 
91
                recursive.o     \
 
92
                sgrep.o         \
 
93
                newmgrep.o      \
 
94
                utilities.o
 
95
 
 
96
$(PROG):        $(OBJS) main.o $(LIBDIR)/lib$(TCOMP).a
 
97
                $(CC) -L$(LIBDIR) $(LINKFLAGS) -o $@ $(OBJS) main.o -l$(TCOMP) $(OTHERLIBS)
 
98
                $(AR) rcv $(LIB) $(OBJS) $(TCOMPLIBOBJ)
 
99
                $(RANLIB) $(LIB)
 
100
 
 
101
$(LIBDIR)/lib$(TCOMP).a:
 
102
                cd $(TCOMPDIR) ; $(MAKE) -f Makefile.solaris CC="$(CC)" SUBDIRCFLAGS="$(SUBDIRCFLAGS)" SUBDIRLINKFLAGS="$(SUBDIRLINKFLAGS)" SHELL="$(SHELL)" HAVE_DIRENT_H="$(HAVE_DIRENT_H)" HAVE_SYS_DIR_H="$(HAVE_SYS_DIR_H)" HAVE_SYS_NDIR_H="$(HAVE_SYS_NDIR_H)" HAVE_NDIR_H="$(HAVE_NDIR_H)" UTIME="$(UTIME)" STRUCTURED_QUERIES="$(STRUCTURED_QUERIES)" ISO_CHAR_SET="$(ISO_CHAR_SET)" SFS_COMPAT="$(SFS_COMPAT)"
 
103
 
 
104
$(NOTCPROG):    $(OBJS) dummyfilters.o main.o
 
105
                $(CC) $(LINKFLAGS) -o $(PROG) $(OBJS) dummyfilters.o main.o $(OTHERLIBS)
 
106
                $(AR) rcv $(LIB) $(OBJS) dummyfilters.o
 
107
                $(RANLIB) $(LIB)
 
108
 
 
109
clean:
 
110
                -rm -f $(LIB) $(OBJS) dummyfilters.o main.o core a.out $(PROG)
 
111
 
 
112
compat.o:       agrep.h defs.h config.h
 
113
asearch.o:      agrep.h defs.h config.h
 
114
asearch1.o:     agrep.h defs.h config.h
 
115
bitap.o:        agrep.h defs.h config.h
 
116
checkfile.o:    agrep.h checkfile.h defs.h config.h
 
117
follow.o:       re.h agrep.h defs.h config.h
 
118
main.o:         agrep.h checkfile.h defs.h config.h dummysyscalls.c
 
119
agrep.o:        agrep.h checkfile.h defs.h config.h
 
120
newmgrep.o:     agrep.h defs.h config.h
 
121
maskgen.o:      agrep.h defs.h config.h
 
122
next.o:         agrep.h defs.h config.h
 
123
parse.o:        re.h agrep.h defs.h config.h
 
124
preprocess.o:   agrep.h defs.h config.h
 
125
checksg.o:      agrep.h checkfile.h defs.h config.h
 
126
delim.o:        agrep.h defs.h config.h
 
127
asplit.o:       agrep.h defs.h config.h
 
128
sgrep.o:        agrep.h defs.h config.h
 
129
abm.o:          agrep.h defs.h config.h
 
130
utilities.o:    re.h agrep.h defs.h config.h
 
131
dummyfilters.o: dummyfilters.c