"Fossies" - the Fresh Open Source Software Archive 
Member "utrac-0.3.2/Makefile" (17 Feb 2007, 3264 Bytes) of package /linux/privat/old/utrac-0.3.2.tgz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #####################################################################
2 # Makefile for Linux!
3 #
4 # Wed Jun 16 18:03:34 2004
5 # Copyright 2004 Alliance MCA
6 # Written by : Antoine Calando (antoine@alliancemca.net)
7 #####################################################################
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Library General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21
22 CC = gcc
23
24 #release :
25 &éCFLAGS = -Wall -O2 -DDEBUG
26
27 # debug
28 #CFLAGS = -Wall -g -DDEBUG
29
30 LIBS = -lm
31
32 PREFIX_PATH = /usr/local
33 LIB_PATH = ${PREFIX_PATH}/lib
34 INC_PATH = ${PREFIX_PATH}/include
35 BIN_PATH = ${PREFIX_PATH}/bin
36 MAN_PATH = ${PREFIX_PATH}/man/man1
37 SHARE_PATH = ${PREFIX_PATH}/share/utrac
38 CHARMAPS_FILE = charsets.dat
39
40 ####
41
42 all: lib utrac
43
44 clean:
45 rm -f *.o *.a testimport *.bb *.da *.bbg core utrac
46
47 force: clean all
48
49 #### INSTALL / UNINSTALL ######
50 install: utrac
51 strip ./utrac
52 mkdir -p ${BIN_PATH}
53 cp ./utrac ${BIN_PATH}
54 mkdir -p ${SHARE_PATH}
55 cp -f ${CHARMAPS_FILE} ${SHARE_PATH}
56 cp -f utrac.1 ${MAN_PATH}
57
58 install-lib: lib
59 mkdir -p ${LIB_PATH}
60 cp libutrac.a ${LIB_PATH}
61 mkdir -p ${LIB_PATH}
62 cp libutrac.a ${LIB_PATH}
63
64 uninstall:
65 rm -f ${BIN_PATH}/utrac
66 rm -f ${LIB_PATH}/libutrac.a
67 rm -f ${SHARE_PATH}/${CHARMAPS_FILE}
68 rmdir ${SHARE_PATH}
69
70 ###### OBJECT FILES #########
71 utrac_cmd.o: utrac_cmd.c utrac.h ut_charset.h ut_error.h ut_text.h debug.h
72 $(CC) -c $(CFLAGS) $< -o $@
73
74 ut_loading.o: ut_loading.c utrac.h ut_error.h ut_text.h debug.h
75 $(CC) -c $(CFLAGS) $< -o $@
76
77 ut_recognition1.o: ut_recognition1.c utrac.h ut_charset.h ut_error.h ut_text.h debug.h
78 $(CC) -c $(CFLAGS) $< -o $@
79
80 ut_recognition2.o: ut_recognition2.c utrac.h ut_charset.h ut_error.h ut_text.h debug.h
81 $(CC) -c $(CFLAGS) $< -o $@
82
83 ut_conversion.o: ut_conversion.c utrac.h ut_charset.h ut_error.h ut_text.h debug.h
84 $(CC) -c $(CFLAGS) $< -o $@
85
86 #option -Wno-multichar has no effect! (gcc 3.3.4) so we use -w...
87 ut_charset.o: ut_charset.c utrac.h ut_charset.h ut_error.h debug.h
88 $(CC) -w -Wno-multichar -c $(CFLAGS) -DUT_CHARMAPS_FILENAME='"${SHARE_PATH}/${CHARMAPS_FILE}"' $< -o $@
89
90 ut_utils.o: ut_utils.c ut_error.h utrac.h debug.h
91 $(CC) -c $(CFLAGS) $< -o $@
92
93 ut_messages.o: ut_messages.c ut_error.h debug.h
94 $(CC) -c $(CFLAGS) $< -o $@
95
96 ut_messages.c: ut_messages_en.c
97 ln -sf ut_messages_en.c ut_messages.c
98
99 utrac.o: utrac.c utrac.h ut_error.h ut_text.h debug.h
100 $(CC) -c $(CFLAGS) $< -o $@
101
102 ###### COMMAND #####
103
104 utrac: utrac_cmd.o libutrac.a
105 $(CC) $^ $(LIBS) -o $@
106
107
108 ##### LIB #######
109 lib: libutrac.a
110
111 libutrac.a: utrac.o ut_charset.o ut_utils.o ut_loading.o ut_recognition1.o ut_recognition2.o \
112 ut_conversion.o ut_messages.o
113 ar rus libutrac.a $?