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