1#
2#  Argus Software
3#  Copyright (c) 2000-2016 QoSient, LLC
4#  All rights reserved.
5#
6#  This program is free software; you can redistribute it and/or modify
7#  it under the terms of the GNU General Public License as published by
8#  the Free Software Foundation; either version 2, or (at your option)
9#  any later version.
10#
11#  This program is distributed in the hope that it will be useful,
12#  but WITHOUT ANY WARRANTY; without even the implied warranty of
13#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14#  GNU General Public License for more details.
15#
16#  You should have received a copy of the GNU General Public License
17#  along with this program; if not, write to the Free Software
18#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19#
20#
21# Various configurable paths (remember to edit Makefile.in, not Makefile)
22#
23#  $Id: //depot/argus/clients/examples/ralabel/Makefile.in#13 $
24#  $DateTime: 2016/06/01 15:17:28 $
25#  $Change: 3148 $
26#
27
28
29# Top level hierarchy
30
31prefix = @prefix@
32exec_prefix = @exec_prefix@
33datarootdir = @datarootdir@
34
35# Pathname of directory to install the system binaries
36SBINDIR = @sbindir@
37# Pathname of directory to install the system binaries
38BINDIR = @bindir@
39# Pathname of directory to install the include files
40INCLDEST = @includedir@
41# Pathname of directory to install the library
42LIBDEST =  @libdir@
43# Pathname of directory to install the man page
44MANDEST = @mandir@
45
46# Pathname of preferred perl to use for perl scripts
47PERL = @V_PERL@
48
49# VPATH
50srcdir = @srcdir@
51VPATH = @srcdir@
52
53#
54# You shouldn't need to edit anything below.
55#
56
57CC = @CC@
58CCOPT = @V_CCOPT@
59INCLS = -I. -I../../include -I../../common @V_INCLS_EXAMPLES@
60DEFS = @DEFS@
61COMPATLIB = @COMPATLIB@ @LIB_SASL@ @LIB_XDR@ @LIBS@ @V_THREADS@ @V_GEOIPDEP@ @V_PCRE@ @V_FTDEP@ @ZLIB@
62
63# Standard CFLAGS
64CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
65
66INSTALL    = @INSTALL@
67INSTALLBIN = ../@INSTALL_BIN@
68INSTALLLIB = ../@INSTALL_LIB@
69RANLIB     = @V_RANLIB@
70
71#
72# Flex and bison allow you to specify the prefixes of the global symbols
73# used by the generated parser.  This allows programs to use lex/yacc
74# and link against libpcap.  If you don't have flex or bison, get them.
75#
76LEX = @V_LEX@
77YACC = @V_YACC@
78
79# Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
80# Also, gcc does not remove the .o before forking 'as', which can be a
81# problem if you don't own the file but can write to the directory.
82.c.o:
83	@rm -f $@
84	$(CC) $(CFLAGS) -c $(srcdir)/$*.c
85
86LIB = $(INSTALLLIB)/argus_parse.a $(INSTALLLIB)/argus_common.a $(INSTALLLIB)/argus_client.a
87
88SRC = ralabel.c
89
90PROGS = $(INSTALLBIN)/ralabel
91
92all: $(PROGS)
93
94$(INSTALLBIN)/ralabel: ralabel.o $(LIB)
95	$(CC) $(CCOPT) -o $@ ralabel.o $(LIB) $(COMPATLIB)
96
97# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
98# hack the extra indirection
99
100OBJ =	$(SRC:.c=.o)
101
102CLEANFILES = $(OBJ) $(PROGS)
103
104install: force all
105	[ -d $(DESTDIR)$(BINDIR) ] || \
106		(mkdir -p $(DESTDIR)$(BINDIR); chmod 755 $(DESTDIR)$(BINDIR))
107	$(INSTALL) $(INSTALLBIN)/ralabel $(DESTDIR)$(BINDIR)
108
109uninstall: force all
110	rm -f $(DESTDIR)$(BINDIR)/ralabel
111
112clean:
113	rm -f $(CLEANFILES)
114
115distclean:
116	rm -f $(CLEANFILES) Makefile
117
118tags: $(TAGFILES)
119	ctags -wtd $(TAGFILES)
120
121force:	/tmp
122depend:	$(GENSRC) force
123	../../bin/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC)
124