Debian Codegraph @

apps/image_archive/Makefile

raw
1 # Makefile for image_archive
2
3 include $(DICOM_MAKE)
4
5 VPATH = ../../include
6 CFLAGS = $(C_OPTS)
7 LFLAGS = $(LINK_FLAGS) -L$(DICOM_LIB) $(LIBPATH_DATABASE) $(LIBPATH_UCB)
8 LIBS = $(LIBS_CTN) $(LIBS_OS_SECURE_UCB) $(DEBUG_LIBS) $(LIBS_OS)
9
10 EXES = archive_server archive_agent archive_cleaner dump_commit_requests
11 EXESMB = archive_server.mb archive_agent archive_cleaner dump_commit_requests
12
13 application: $(EXES)
14 application.mb: $(EXESM)
15
16 install: $(EXES)
17 $(INSTALLUID) archive_server $(DICOM_BIN)
18 $(INSTALL) archive_agent $(DICOM_BIN)
19 $(INSTALL) archive_cleaner $(DICOM_BIN)
20 $(INSTALL) dump_commit_requests $(DICOM_BIN)
21
22 install-clean: install
23 make clean
24
25 install.mb: $(EXESMB)
26 mv archive_server.mb archive_server
27 $(INSTALLUID) archive_server $(DICOM_BIN)
28 $(INSTALL) archive_agent $(DICOM_BIN)
29 $(INSTALL) archive_cleaner $(DICOM_BIN)
30 $(INSTALL) dump_commit_requests $(DICOM_BIN)
31
32 clean:
33 rm -f $(EXES) *.o *.BAK *.bak *% *~ core
34
35 indent:
36 $(INDENT) archive_agent.c
37 $(INDENT) archive_cleaner.c
38 $(INDENT) archive_server.c
39 $(INDENT) association.c
40 $(INDENT) cget.c
41 $(INDENT) cget.h
42 $(INDENT) commit_result.c
43 $(INDENT) commit_result.h
44 $(INDENT) copy.c
45 $(INDENT) copy.h
46 $(INDENT) dump_commit_requests.c
47 $(INDENT) find.c
48 $(INDENT) find.h
49 $(INDENT) image_archive.h
50 $(INDENT) move.c
51 $(INDENT) move.h
52 $(INDENT) naction.c
53 $(INDENT) naction.h
54 $(INDENT) parse.c
55 $(INDENT) requests.c
56 $(INDENT) sscond.c
57
58
59 checkin:
60 $(INDENT) archive_agent.c; $(CI) archive_agent.c
61 $(INDENT) archive_cleaner.c; $(CI) archive_cleaner.c
62 $(INDENT) archive_server.c; $(CI) archive_server.c
63 $(INDENT) association.c; $(CI) association.c
64 $(INDENT) cget.c; $(CI) cget.c
65 $(INDENT) cget.h; $(CI) cget.h
66 $(INDENT) commit_result.c; $(CI) commit_result.c
67 $(INDENT) commit_result.h; $(CI) commit_result.h
68 $(INDENT) copy.c; $(CI) copy.c
69 $(INDENT) copy.h; $(CI) copy.h
70 $(INDENT) dump_commit_requests.c; $(CI) dump_commit_requests.c
71 $(INDENT) find.c; $(CI) find.c
72 $(INDENT) find.h; $(CI) find.h
73 $(INDENT) image_archive.h; $(CI) image_archive.h
74 $(INDENT) move.c; $(CI) move.c
75 $(INDENT) move.h; $(CI) move.h
76 $(INDENT) naction.c; $(CI) naction.c
77 $(INDENT) naction.h; $(CI) naction.h
78 $(INDENT) parse.c; $(CI) parse.c
79 $(INDENT) requests.c; $(CI) requests.c
80 $(INDENT) sscond.c; $(CI) sscond.c
81 rm -f $(EXES) *.o *.BAK *.bak *% core *~
82
83 checkout:
84 $(CO) archive_agent.c
85 $(CO) archive_cleaner.c
86 $(CO) archive_server.c
87 $(CO) association.c
88 $(CO) cget.c
89 $(CO) cget.h
90 $(CO) commit_result.c
91 $(CO) commit_result.h
92 $(CO) copy.c
93 $(CO) copy.h
94 $(CO) dump_commit_requests.c
95 $(CO) find.c
96 $(CO) find.h
97 $(CO) image_archive.h
98 $(CO) move.c
99 $(CO) move.h
100 $(CO) naction.c
101 $(CO) naction.h
102 $(CO) parse.c
103 $(CO) requests.c
104 $(CO) sscond.c
105
106 #SERVER_OBJS = archive_server.o association.o copy.o requests.o find.o move.o
107 SERVER_OBJS = archive_server.o association.o requests.o find.o move.o \
108 cget.o naction.o queue.o parse.o sscond.o
109
110 SERVER_OBJS_MB = archive_server.o association.o requests.o find.o move.o \
111 cget.o naction.o queue.o parseMB.o sscond.o
112
113 archive_server: $(SERVER_OBJS)
114 $(CC) -o archive_server -g $(LFLAGS) $(SERVER_OBJS) $(LIBS) -lm
115
116 relink:
117 $(CC) -o archive_server -g $(LFLAGS) $(SERVER_OBJS) $(LIBS) -lm
118
119 archive_server.mb: $(SERVER_OBJS_MB)
120 $(CC) -o archive_server.mb -g $(LFLAGS) $(SERVER_OBJS_MB) $(LIBS) -lm
121
122 archive_agent: archive_agent.o commit_result.o sscond.o
123 $(CC) -o archive_agent -g $(LFLAGS) archive_agent.o commit_result.o sscond.o $(LIBS)
124
125 archive_cleaner: archive_cleaner.o commit_result.o sscond.o
126 $(CC) -o archive_cleaner -g $(LFLAGS) archive_cleaner.o commit_result.o sscond.o $(LIBS)
127
128 dump_commit_requests: dump_commit_requests.o
129 $(CC) -o dump_commit_requests -g $(LFLAGS) dump_commit_requests.o $(LIBS)
130
131 DUMMY_OBJS = archive_server.o association_dummy.o copy.o requests_dummy.o find.o move.o \
132 cget.o naction.o parse.o sscond.o
133
134 archive_dummy: $(DUMMY_OBJS)
135 $(CC) -o archive_dummy -g $(LFLAGS) $(DUMMY_OBJS) $(LIBS) -lm
136
137 IMPORT_OBJS = importMB.o parseMB.o sscond.o
138
139 importMB: $(IMPORT_OBJS)
140 $(CC) -o importMB -g $(LFLAGS) $(IMPORT_OBJS) $(LIBS) -lm
141
142
143 archive_server.o: archive_server.c tbl.h image_archive.h
144 association.o: association.c image_archive.h
145 cget.o: cget.c cget.h
146 copy.o: copy.c image_archive.h copy.h
147 find.o: find.c image_archive.h find.h
148 move.o: move.c image_archive.h move.h
149 naction.o: naction.c image_archive.h naction.h
150 parse.o: parse.c image_archive.h
151 parseMB.o: parseMB.c image_archive.h
152 requests.o: requests.c image_archive.h
153 sscond.o: sscond.c image_archive.h
154
155 archive_agent.o: archive_agent.c commit_result.h
156 commit_result.o: commit_result.c commit_result.h
157
158 lint:
159 flexelint $(LINTOPTIONS) archive_server.c association.c copy.c find.c move.c parse.c requests.c sscond.c
160
161 server:
162 ./archive_server -g DINPACS -r -i -q 2100
163
164 drno: archive_server
165 ./archive_server -C "" -n drno -r -i 2100
166
167 drno_silent: archive_server
168 ./archive_server -C "" -s -n drno -r -i -q 2100