| 1 |
# Makefile for DICOM print |
| 2 |
|
| 3 |
OBJS = print.o printcond.o |
| 4 |
include $(DICOM_MAKE) |
| 5 |
VPATH = ../../include |
| 6 |
CFLAGS = $(C_OPTS) -I$(DICOM_INCLUDE) |
| 7 |
|
| 8 |
library: libprint.a |
| 9 |
install: libprint.a |
| 10 |
cp libprint.a $(DICOM_LIB); $(RANLIB) $(DICOM_LIB)/libprint.a |
| 11 |
$(INSTALLINCLUDE) dicom_print.h $(DICOM_INCLUDE) |
| 12 |
|
| 13 |
export: |
| 14 |
cp *.[ch] $(DICOM_LIBSRC) |
| 15 |
|
| 16 |
headerexport: |
| 17 |
$(INSTALLINCLUDE) dicom_print.h $(DICOM_INCLUDE) |
| 18 |
|
| 19 |
links: |
| 20 |
rm -f $(DICOM_LIBSRC)/dicom_print.h $(DICOM_LIBSRC)/print.c |
| 21 |
rm -f $(DICOM_LIBSRC)/printcond.c |
| 22 |
ln -s ../facilities/print/dicom_print.h $(DICOM_LIBSRC) |
| 23 |
ln -s ../facilities/print/print.c $(DICOM_LIBSRC) |
| 24 |
ln -s ../facilities/print/printcond.c $(DICOM_LIBSRC) |
| 25 |
|
| 26 |
clean: |
| 27 |
rm -f *.a *.o *BAK *% core |
| 28 |
|
| 29 |
indent: |
| 30 |
# $(INDENT) dicom_print.h |
| 31 |
$(INDENT) print.c |
| 32 |
$(INDENT) printcond.c |
| 33 |
checkin: |
| 34 |
$(CI) dicom_print.h |
| 35 |
$(INDENT) print.c; $(CI) print.c |
| 36 |
$(INDENT) printcond.c; $(CI) printcond.c |
| 37 |
rm -f *.a *.o *BAK *% core |
| 38 |
|
| 39 |
checkout: |
| 40 |
$(CO) dicom_print.h |
| 41 |
$(CO) print.c |
| 42 |
$(CO) printcond.c |
| 43 |
|
| 44 |
libprint.a: $(OBJS) |
| 45 |
ar cvr libprint.a $(OBJS); $(RANLIB) libprint.a |
| 46 |
|
| 47 |
print.o: print.c dicom.h condition.h dicom_print.h \ |
| 48 |
dicom_messages.h dicom_uids.h dicom_objects.h dicom_sq.h |
| 49 |
|
| 50 |
printcond.o: printcond.c dicom.h condition.h dicom_print.h \ |
| 51 |
dicom_messages.h dicom_uids.h dicom_objects.h |
| 52 |
|
| 53 |
lint: |
| 54 |
flexelint $(LINTOPTIONS) print.c |