| 1 |
# Makefile for print_mgr |
| 2 |
|
| 3 |
NAME = print_mgr |
| 4 |
NAME2 = print_client |
| 5 |
PRINT_QUERY = print_query |
| 6 |
OBJ = $(NAME).o Buttons.o MessageBox.o Fields.o display_error.o\ |
| 7 |
print_shared.o display_icon.o display_study.o display_message.o |
| 8 |
OBJ2 = $(NAME2).o print_shared.o |
| 9 |
PRINT_QUERY_OBJ = $(PRINT_QUERY).o print_shared.o |
| 10 |
|
| 11 |
include $(DICOM_MAKE) |
| 12 |
|
| 13 |
VPATH = ../../include:../include |
| 14 |
CFLAGS = $(C_OPTS) -I$(DICOM_INCLUDE) -I../include -I/usr/openwin/include |
| 15 |
LFLAGS = -L$(DICOM_LIB) $(LIBPATH_X11) $(LIBPATH_UCB) $(LIBS_OS) $(LIBPATH_DATABASE) |
| 16 |
LIBS = $(LIBS_CTN_NODB) $(SOLARISUCB) |
| 17 |
|
| 18 |
application: $(NAME) $(NAME2) |
| 19 |
|
| 20 |
install: $(NAME) $(NAME2) |
| 21 |
$(INSTALL) $(NAME) $(DICOM_BIN) |
| 22 |
$(INSTALL) $(NAME2) $(DICOM_BIN) |
| 23 |
|
| 24 |
install-clean: install |
| 25 |
make clean |
| 26 |
|
| 27 |
clean: |
| 28 |
rm -f $(NAME) $(NAME2) $(PRINT_QUERY) test *.o *.BAK *.bak *% core |
| 29 |
|
| 30 |
indent: |
| 31 |
$(INDENT) $(NAME).c |
| 32 |
$(INDENT) $(NAME).h |
| 33 |
$(INDENT) $(NAME2).c |
| 34 |
$(INDENT) $(PRINT_QUERY).c |
| 35 |
$(INDENT) Buttons.c |
| 36 |
$(INDENT) Buttons.h |
| 37 |
$(INDENT) MessageBox.c |
| 38 |
$(INDENT) MessageBox.h |
| 39 |
$(INDENT) Fields.c |
| 40 |
$(INDENT) Fields.h |
| 41 |
$(INDENT) print_client_app.h |
| 42 |
# $(INDENT) print_client_private.h |
| 43 |
# $(INDENT) print_client_private.c |
| 44 |
$(INDENT) print_mgr.h |
| 45 |
$(INDENT) print_mgr.c |
| 46 |
# $(INDENT) print_callback.c |
| 47 |
# $(INDENT) print_callback.h |
| 48 |
$(INDENT) print_shared.c |
| 49 |
$(INDENT) print_shared.h |
| 50 |
$(INDENT) display_icon.h |
| 51 |
$(INDENT) display_icon.c |
| 52 |
$(INDENT) display_study.h |
| 53 |
$(INDENT) display_study.c |
| 54 |
$(INDENT) display_error.h |
| 55 |
$(INDENT) display_error.c |
| 56 |
$(INDENT) display_message.h |
| 57 |
$(INDENT) display_message.c |
| 58 |
$(INDENT) test.c |
| 59 |
|
| 60 |
checkin: |
| 61 |
$(INDENT) $(NAME).c; $(CI) $(NAME).c |
| 62 |
$(INDENT) $(NAME).h; $(CI) $(NAME).h |
| 63 |
$(INDENT) $(NAME2).c; $(CI) $(NAME2).c |
| 64 |
$(INDENT) $(PRINT_QUERY).c; $(CI) $(PRINT_QUERY).c |
| 65 |
$(INDENT) Buttons.c; $(CI) Buttons.c |
| 66 |
$(INDENT) Buttons.h; $(CI) Buttons.h |
| 67 |
$(INDENT) MessageBox.c; $(CI) MessageBox.c |
| 68 |
$(INDENT) MessageBox.h; $(CI) MessageBox.h |
| 69 |
$(INDENT) Fields.c; $(CI) Fields.c |
| 70 |
$(INDENT) Fields.h; $(CI) Fields.h |
| 71 |
$(INDENT) print_client_app.h; $(CI) print_client_app.h |
| 72 |
# $(INDENT) print_client_private.h; $(CI) print_client_private.h |
| 73 |
# $(INDENT) print_client_private.c; $(CI) print_client_private.c |
| 74 |
# $(INDENT) print_callback.c; $(CI) print_callback.c |
| 75 |
# $(INDENT) print_callback.h; $(CI) print_callback.h |
| 76 |
$(INDENT) print_shared.c; $(CI) print_shared.c |
| 77 |
$(INDENT) print_shared.h; $(CI) print_shared.h |
| 78 |
$(INDENT) display_icon.h; $(CI) display_icon.h |
| 79 |
$(INDENT) display_icon.c; $(CI) display_icon.c |
| 80 |
$(INDENT) display_study.h; $(CI) display_study.h |
| 81 |
$(INDENT) display_study.c; $(CI) display_study.c |
| 82 |
$(INDENT) display_error.h; $(CI) display_error.h |
| 83 |
$(INDENT) display_error.c; $(CI) display_error.c |
| 84 |
$(INDENT) display_message.h; $(CI) display_message.h |
| 85 |
$(INDENT) display_message.c; $(CI) display_message.c |
| 86 |
$(INDENT) test.c; $(CI) test.c |
| 87 |
rm -f $(NAME) $(NAME2) $(PRINT_QUERY) *.o *.BAK *.bak *% core |
| 88 |
|
| 89 |
checkout: |
| 90 |
$(CO) $(NAME).c |
| 91 |
$(CO) $(NAME).h |
| 92 |
$(CO) $(NAME2).c |
| 93 |
$(CO) $(PRINT_QUERY).c |
| 94 |
$(CO) Buttons.c |
| 95 |
$(CO) Buttons.h |
| 96 |
$(CO) MessageBox.c |
| 97 |
$(CO) MessageBox.h |
| 98 |
$(CO) Fields.c |
| 99 |
$(CO) Fields.h |
| 100 |
$(CO) print_client_app.h |
| 101 |
# $(CO) print_client_private.h |
| 102 |
# $(CO) print_client_private.c |
| 103 |
# $(CO) print_callback.c |
| 104 |
# $(CO) print_callback.h |
| 105 |
$(CO) print_shared.c |
| 106 |
$(CO) print_shared.h |
| 107 |
$(CO) display_icon.h |
| 108 |
$(CO) display_icon.c |
| 109 |
$(CO) display_study.h |
| 110 |
$(CO) display_study.c |
| 111 |
$(CO) display_error.h |
| 112 |
$(CO) display_error.c |
| 113 |
$(CO) display_message.h |
| 114 |
$(CO) display_message.c |
| 115 |
$(CO) test.c |
| 116 |
|
| 117 |
$(NAME): $(OBJ) |
| 118 |
$(CC) -o $(NAME) $(CFLAGS) $(OBJ) $(LFLAGS) $(XAW_LIBS) $(LIBS_XAW) $(LIBS_X11) $(LIBS) |
| 119 |
|
| 120 |
$(NAME2): $(OBJ2) print_client_app.h |
| 121 |
$(CC) -o $(NAME2) $(CFLAGS) $(OBJ2) $(LFLAGS) $(LIBS) |
| 122 |
|
| 123 |
$(PRINT_QUERY): $(PRINT_QUERY_OBJ) |
| 124 |
$(CC) -o $(PRINT_QUERY) $(CFLAGS) $(PRINT_QUERY_OBJ) $(LFLAGS) $(LIBS) |
| 125 |
|
| 126 |
$(NAME).o: $(NAME).c $(NAME).h dicom.h dulprotocol.h lst.h condition.h \ |
| 127 |
dicom_services.h dicom_messages.h dicom_uids.h print_shared.h |
| 128 |
$(CC) -c $(CFLAGS) $(NAME).c |
| 129 |
|
| 130 |
$(NAME2).o: $(NAME2).c dicom.h dulprotocol.h lst.h condition.h \ |
| 131 |
dicom_services.h dicom_messages.h dicom_uids.h dicom_print.h \ |
| 132 |
dicom_sq.h print_shared.h |
| 133 |
$(CC) -c $(CFLAGS) $(NAME2).c |
| 134 |
|
| 135 |
$(PRINT_QUERY).o: $(PRINT_QUERY).c dicom.h dulprotocol.h lst.h condition.h \ |
| 136 |
dicom_services.h dicom_messages.h dicom_uids.h dicom_print.h \ |
| 137 |
dicom_sq.h print_shared.h |
| 138 |
$(CC) -c $(CFLAGS) $(PRINT_QUERY).c |
| 139 |
|
| 140 |
Buttons.o: Buttons.c Buttons.h |
| 141 |
$(CC) -c $(CFLAGS) Buttons.c |
| 142 |
|
| 143 |
MessageBox.o: MessageBox.c MessageBox.h |
| 144 |
$(CC) -c $(CFLAGS) MessageBox.c |
| 145 |
|
| 146 |
Fields.o: Fields.h Fields.c |
| 147 |
$(CC) -c $(CFLAGS) Fields.c |
| 148 |
|
| 149 |
display_icon.o: display_icon.h display_icon.c |
| 150 |
$(CC) -c $(CFLAGS) display_icon.c |
| 151 |
|
| 152 |
display_study.o: display_study.h display_study.c |
| 153 |
$(CC) -c $(CFLAGS) display_study.c |
| 154 |
|
| 155 |
display_error.o: display_error.h display_error.c |
| 156 |
$(CC) -c $(CFLAGS) display_error.c |
| 157 |
|
| 158 |
display_message.o: display_message.h display_message.c |
| 159 |
$(CC) -c $(CFLAGS) display_message.c |
| 160 |
|
| 161 |
print_shared.o: print_shared.c |
| 162 |
$(CC) -c $(CFLAGS) print_shared.c |
| 163 |
|
| 164 |
print_callback.o: print_callback.c dicom_n_printer.h |
| 165 |
$(CC) -c $(CFLAGS) print_callback.c |
| 166 |
|
| 167 |
print_client_private.o: print_client_private.c dicom.h lst.h condition.h \ |
| 168 |
dulprotocol.h dicom_objects.h dicom_messages.h dicom_services.h dicom_uids.h \ |
| 169 |
dicom_sq.h dicom_n_printer.h |
| 170 |
$(CC) -c $(CFLAGS) print_client_private.c |
| 171 |
|
| 172 |
trial: trial.o |
| 173 |
$(CC) -o trial $(CFLAGS) trial.o $(LFLAGS) $(LIBS) |
| 174 |
|
| 175 |
trial.o: trial.c dicom.h dulprotocol.h lst.h condition.h \ |
| 176 |
dicom_services.h dicom_messages.h dicom_uids.h print_callback.h \ |
| 177 |
print_shared.h |
| 178 |
$(CC) -c $(CFLAGS) trial.c |
| 179 |
|
| 180 |
test: test.o display_icon.o Buttons.o display_study.o |
| 181 |
$(CC) -o test $(CFLAGS) test.o display_icon.o Buttons.o display_study.o\ |
| 182 |
$(LFLAGS) $(XAW_LIBS) $(LIBS_X11) $(LIBS) |
| 183 |
|
| 184 |
test.o: test.c |
| 185 |
$(CC) -c $(CFLAGS) test.c |
| 186 |
|
| 187 |
test1: test1.o |
| 188 |
$(CC) -o test1 $(CFLAGS) test1.o $(LIBS) |
| 189 |
|
| 190 |
test1.o: test1.c |
| 191 |
$(CC) -c $(CFLAGS) test1.c |
| 192 |
|
| 193 |
lint: |
| 194 |
flexelint $(LINTOPTIONS) $(NAME).c Buttons.c MessageBox.c Fields.c \ |
| 195 |
print_shared.c display_icon.c display_study.c display_message.c |
| 196 |
flexelint $(LINTOPTIONS) $(NAME2).c print_shared.c |