| 1 |
# Makefile for storage_commit |
| 2 |
|
| 3 |
OBJ = storage_commit.o association.o commit_request.o sscond.o |
| 4 |
include $(DICOM_MAKE) |
| 5 |
|
| 6 |
VPATH = ../../include |
| 7 |
CFLAGS = $(C_OPTS) |
| 8 |
LIBS = $(LIBS_CTN) $(LIBS_OS) |
| 9 |
LFLAGS = -L$(DICOM_LIB) |
| 10 |
EXES = storage_commit commit_agent |
| 11 |
|
| 12 |
application: $(EXES) |
| 13 |
|
| 14 |
install: $(EXES) |
| 15 |
$(INSTALL) storage_commit $(DICOM_BIN) |
| 16 |
$(INSTALL) commit_agent $(DICOM_BIN) |
| 17 |
|
| 18 |
install-clean: install |
| 19 |
make clean |
| 20 |
|
| 21 |
clean: |
| 22 |
rm -f $(EXES) *.o *.BAK core *% *~ |
| 23 |
|
| 24 |
indent: |
| 25 |
$(INDENT) association.c |
| 26 |
$(INDENT) commit_agent.c |
| 27 |
$(INDENT) commit_request.c |
| 28 |
$(INDENT) nevent.c |
| 29 |
$(INDENT) nevent.h |
| 30 |
$(INDENT) requests.c |
| 31 |
$(INDENT) sscond.c |
| 32 |
$(INDENT) storage_commit.c |
| 33 |
$(INDENT) storage_commit.h |
| 34 |
|
| 35 |
checkin: |
| 36 |
$(INDENT) association.c; $(CI) association.c |
| 37 |
$(INDENT) commit_agent.c; $(CI) commit_agent.c |
| 38 |
$(INDENT) commit_request.c; $(CI) commit_request.c |
| 39 |
$(INDENT) nevent.c; $(CI) nevent.c |
| 40 |
$(INDENT) nevent.h; $(CI) nevent.h |
| 41 |
$(INDENT) requests.c; $(CI) requests.c |
| 42 |
$(INDENT) sscond.c; $(CI) sscond.c |
| 43 |
$(INDENT) storage_commit.c; $(CI) storage_commit.c |
| 44 |
$(INDENT) storage_commit.h; $(CI) storage_commit.h |
| 45 |
rm -f $(EXES) *.o *.BAK core *% *~ |
| 46 |
|
| 47 |
checkout: |
| 48 |
$(CO) association.c |
| 49 |
$(CO) commit_agent.c |
| 50 |
$(CO) commit_request.c |
| 51 |
$(CO) nevent.c |
| 52 |
$(CO) nevent.h |
| 53 |
$(CO) requests.c |
| 54 |
$(CO) sscond.c |
| 55 |
$(CO) storage_commit.c |
| 56 |
$(CO) storage_commit.h |
| 57 |
|
| 58 |
storage_commit: $(OBJ) |
| 59 |
$(CC) -o storage_commit -g $(LFLAGS) $(OBJ) $(LIBS) |
| 60 |
commit_agent: commit_agent.o association.o requests.o nevent.o sscond.o |
| 61 |
$(CC) -o commit_agent -g $(LFLAGS) commit_agent.o association.o requests.o nevent.o sscond.o $(LIBS) |
| 62 |
|
| 63 |
storage_commit.o: storage_commit.c tbl.h |
| 64 |
commit_agent.o: commit_agent.c tbl.h |
| 65 |
association.o: association.c |
| 66 |
nevent.o: nevent.c |
| 67 |
sscond.o: sscond.c |
| 68 |
|
| 69 |
lint: |
| 70 |
flexelint $(LINTOPTIONS) storage_commit.c |