Debian Codegraph @

facilities/lst/Makefile

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