source: main/trunk/greenstone2/runtime-src/packages/d2m/Makefile.orig@ 22397

Last change on this file since 22397 was 10365, checked in by kjdon, 19 years ago

changed my mind, now adding these all individually instead of in a tar file

  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# ///////////////// d2m : Dublin Core to MARC converter /////////////////////
2#
3# The basic conversion (reading a file and producing a MARC record)
4# is performed by D2Mconv.c
5#
6# On top of D2Mconv.c is built 2 applications:
7#
8# d2m : A CGI version
9# (See documentation in main program D2Mcgi.c)
10# d2main: A command line (standalone version)
11# (See documentation in main program D2Mmain.c)
12#
13# Both applications are capable of reading from a local file or a
14# remote file using builtin HTTP client services.
15#
16# (You can compile a version of d2main without HTTP ability by
17# make d2main-nosock
18# )
19#
20# Both applications has the added ability to read a 2709 MARC record
21# instead of DC metadata, using M2Mconv.c to perform the conversion.
22# (This is not a MARC converter with the ability to convert between
23# MARC formats, just between "presentation syntaxes".
24#
25# 1998-10-15 Ole Husby
26#
27
28CC = cc
29
30# This may have to uncomment this on solaris:
31# LIBS = -lsocket -lnsl
32
33OBJ = D2Mconv.o M2Mconv.o marc2line.o util.o MARC2709.o MARCmake.o MARCtidy.o dc_parse.o
34OBJ_MARC = danMARC.o finMARC.o isMARC.o norMARC.o sweMARC.o usMARC.o
35OBJ_SOCK = wfetch.o htget.o
36OBJ_NOSOCK = wfetch-l.o
37
38all: d2m d2main
39
40d2m: D2Mcgi.o $(OBJ) $(OBJ_MARC) $(OBJ_SOCK)
41 @echo "------------------- Compiling d2m -------------------------------"
42 $(CC) D2Mcgi.o $(OBJ) $(OBJ_MARC) $(OBJ_SOCK) -o d2m $(LIBS)
43
44d2main: D2Mmain.o $(OBJ) $(OBJ_MARC) $(OBJ_SOCK)
45 @echo "------------------- Compiling d2main ----------------------------"
46 $(CC) D2Mmain.o $(OBJ) $(OBJ_MARC) $(OBJ_SOCK) -o d2main $(LIBS)
47
48d2main-nosock: D2Mmain.o $(OBJ) $(OBJ_MARC) $(OBJ_NOSOCK)
49 @echo "------------------- Compiling d2main (no sockets) ---------------"
50 $(CC) D2Mmain.o $(OBJ) $(OBJ_MARC) $(OBJ_NOSOCK) -o d2main $(LIBS)
51
52
53D2Mcgi.o: D2Mcgi.c d2m.h
54 $(CC) -c D2Mcgi.c
55
56D2Mmain.o: D2Mmain.c d2m.h
57 $(CC) -c D2Mmain.c
58
59D2Mconv.o: D2Mconv.c d2m.h
60 $(CC) -c D2Mconv.c
61
62M2Mconv.o: M2Mconv.c
63 $(CC) -c M2Mconv.c
64
65marc2line.o: marc2line.c
66 $(CC) -c marc2line.c
67
68MARCmake.o: MARCmake.c d2m.h
69 $(CC) -c MARCmake.c
70
71MARCtidy.o: MARCtidy.c d2m.h
72 $(CC) -c MARCtidy.c
73
74MARC2709.o: MARC2709.c d2m.h
75 $(CC) -c MARC2709.c
76
77dc_parse.o: dc_parse.c d2m.h
78 $(CC) -c dc_parse.c
79
80util.o: util.c d2m.h
81 $(CC) -c util.c
82
83danMARC.o: danMARC.c d2m.h
84 $(CC) -c danMARC.c
85
86finMARC.o: finMARC.c d2m.h
87 $(CC) -c finMARC.c
88
89isMARC.o: isMARC.c d2m.h
90 $(CC) -c isMARC.c
91
92norMARC.o: norMARC.c d2m.h
93 $(CC) -c norMARC.c
94
95sweMARC.o: sweMARC.c d2m.h
96 $(CC) -c sweMARC.c
97
98usMARC.o: usMARC.c d2m.h
99 $(CC) -c usMARC.c
100
101wfetch.o: wfetch.c
102 $(CC) -c wfetch.c
103
104wfetch-l.o: wfetch-l.c
105 $(CC) -c wfetch-l.c
106
107htget.o: htget.c
108 $(CC) -c htget.c
109
110clean:
111 rm -f *.o d2m d2main
Note: See TracBrowser for help on using the repository browser.