| 1 |
# Makefile for DICOM messages |
| 2 |
|
| 3 |
OBJS = messages.o dump.o msgcond.o ref_item.o |
| 4 |
include $(DICOM_MAKE) |
| 5 |
VPATH = ../../include |
| 6 |
CFLAGS = $(C_OPTS) -I$(DICOM_INCLUDE) |
| 7 |
|
| 8 |
library: libmessages.a |
| 9 |
install: libmessages.a |
| 10 |
cp libmessages.a $(DICOM_LIB); $(RANLIB) $(DICOM_LIB)/libmessages.a |
| 11 |
$(INSTALLINCLUDE) dicom_messages.h $(DICOM_INCLUDE) |
| 12 |
|
| 13 |
export: |
| 14 |
cp *.[ch] $(DICOM_LIBSRC) |
| 15 |
|
| 16 |
headerexport: |
| 17 |
$(INSTALLINCLUDE) dicom_messages.h $(DICOM_INCLUDE) |
| 18 |
|
| 19 |
links: |
| 20 |
rm -f $(DICOM_LIBSRC)/dicom_messages.h $(DICOM_LIBSRC)/dump.c |
| 21 |
rm -f $(DICOM_LIBSRC)/msgcond.c $(DICOM_LIBSRC)/messages.c |
| 22 |
rm -f $(DICOM_LIBSRC)/msgprivate.h $(DICOM_LIBSRC)/ref_item.c |
| 23 |
ln -s ../facilities/messages/dicom_messages.h $(DICOM_LIBSRC) |
| 24 |
ln -s ../facilities/messages/dump.c $(DICOM_LIBSRC) |
| 25 |
ln -s ../facilities/messages/msgcond.c $(DICOM_LIBSRC) |
| 26 |
ln -s ../facilities/messages/messages.c $(DICOM_LIBSRC) |
| 27 |
ln -s ../facilities/messages/msgprivate.h $(DICOM_LIBSRC) |
| 28 |
ln -s ../facilities/messages/ref_item.c $(DICOM_LIBSRC) |
| 29 |
|
| 30 |
|
| 31 |
clean: |
| 32 |
rm -f *.a *.o *.BAK *% core |
| 33 |
|
| 34 |
indent: |
| 35 |
# $(INDENT) dicom_messages.h |
| 36 |
$(INDENT) dump.c |
| 37 |
$(INDENT) msgcond.c |
| 38 |
$(INDENT) messages.c |
| 39 |
# $(INDENT) msgprivate.h |
| 40 |
$(INDENT) ref_item.c |
| 41 |
# $(INDENT) cbuild.c RETIRED |
| 42 |
# $(INDENT) msgsupport.c RETIRED |
| 43 |
# $(INDENT) cparse.c RETIRED |
| 44 |
# $(INDENT) nbuild.c RETIRED |
| 45 |
# $(INDENT) nparse.c RETIRED |
| 46 |
|
| 47 |
checkin: |
| 48 |
$(CI) dicom_messages.h |
| 49 |
$(INDENT) dump.c; $(CI) dump.c |
| 50 |
$(INDENT) msgcond.c; $(CI) msgcond.c |
| 51 |
$(INDENT) messages.c; $(CI) messages.c |
| 52 |
$(CI) msgprivate.h |
| 53 |
$(INDENT) ref_item.c; $(CI) ref_item.c |
| 54 |
# $(INDENT) cbuild.c; $(CI) cbuild.c |
| 55 |
# $(INDENT) cparse.c; $(CI) cparse.c |
| 56 |
# $(INDENT) msgsupport.c; $(CI) msgsupport.c |
| 57 |
# $(INDENT) nbuild.c; $(CI) nbuild.c |
| 58 |
# $(INDENT) nparse.c; $(CI) nparse.c |
| 59 |
rm -f *.a *.o *.BAK *% core |
| 60 |
|
| 61 |
checkout: |
| 62 |
$(CO) dicom_messages.h |
| 63 |
$(CO) dump.c |
| 64 |
$(CO) messages.c |
| 65 |
$(CO) msgprivate.h |
| 66 |
$(CO) msgcond.c |
| 67 |
$(CO) ref_item.c |
| 68 |
# $(CO) cbuild.c |
| 69 |
# $(CO) cparse.c |
| 70 |
# $(CO) msgsupport.c |
| 71 |
# $(CO) nbuild.c |
| 72 |
# $(CO) nparse.c |
| 73 |
|
| 74 |
libmessages.a: $(OBJS) |
| 75 |
ar cvr libmessages.a $(OBJS); $(RANLIB) libmessages.a |
| 76 |
|
| 77 |
dump.o: dump.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 78 |
messages.o: messages.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 79 |
msgcond.o: msgcond.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 80 |
ref_item.o: ref_item.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 81 |
#cbuild.o: cbuild.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 82 |
#cdump.o: cdump.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 83 |
#msgsupport.o: msgsupport.c dicom.h condition.h dicom_messages.h dicom_objects.h msgprivate.h |
| 84 |
#nbuild.o: nbuild.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 85 |
#nparse.o: nparse.c dicom.h condition.h dicom_messages.h dicom_objects.h |
| 86 |
|
| 87 |
lint: |
| 88 |
flexelint $(LINTOPTIONS) dump.c messages.c msgcond.c ref_item.c |