File: Makefile

package info (click to toggle)
ctn 3.2.0~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,336 kB
  • ctags: 21,262
  • sloc: ansic: 179,501; makefile: 7,004; java: 1,863; csh: 1,067; yacc: 523; sh: 424; cpp: 394; sql: 389; lex: 170
file content (96 lines) | stat: -rw-r--r-- 2,645 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Makefile for worklist
# This makefile is used to build a Motif application, worklist.  It uses
# flags set in a global makefile (DICOM_MAKE)


include $(DICOM_MAKE)
NAME = object_viewer
OBJS = $(NAME).o topLevelShell1.o fileSelectionBoxDialog1.o format.o UxXt.o UxMethod.o

CFLAGS = $(C_OPTS) $(CFLAGS_X11) $(CFLAGS_MOTIF) -DXT_CODE -I.
LFLAGS = -L$(DICOM_LIB) $(LIBPATH_DATABASE)

LIBPATH         = $(LIBPATH_MOTIF) $(LIBPATH_X11) -L$(DICOM_LIB) $(LIBPATH_UCB) $(LIBPATH_DATABASE)
LIBS            = $(LIBS_CTN_NODB) $(LIBS_MOTIF) $(LIBS_X11) $(LIBS_OS)

application:	$(NAME)

$(NAME): $(OBJS)
	$(CC) -o $(NAME) -g $(OBJS) $(LIBPATH) $(LIBS)

install:	$(NAME)
	$(INSTALL) $(NAME) $(DICOM_BIN)

install-clean:	install
	make clean

clean:
	rm -f $(NAME) *.o *BAK *.bak *% core

indent:
	chmod u+w *h
	$(INDENT) SaAddLogin.h
	$(INDENT) SaConsoleCalls.h
	$(INDENT) SaPopCalls.h
	$(INDENT) Sut.h
	$(INDENT) SutList.h
	$(INDENT) SutProto.h
	$(INDENT) UxMethod.c
	$(INDENT) UxXt.c
	$(INDENT) WorkingDialog.h
	$(INDENT) fileSelectionBoxDialog1.c
	$(INDENT) fileSelectionBoxDialog1.h
	$(INDENT) format.c
	$(INDENT) format.h
	$(INDENT) object_viewer.c
	$(INDENT) topLevelShell1.c
	$(INDENT) topLevelShell1.h

checkin:
	$(INDENT) SaAddLogin.h;			$(CI) SaAddLogin.h
	$(INDENT) SaConsoleCalls.h;		$(CI) SaConsoleCalls.h
	$(INDENT) SaPopCalls.h;			$(CI) SaPopCalls.h
	$(INDENT) Sut.h;			$(CI) Sut.h
	$(INDENT) SutList.h;			$(CI) SutList.h
	$(INDENT) SutProto.h;			$(CI) SutProto.h
	$(INDENT) UxMethod.c;			$(CI) UxMethod.c
	$(INDENT) UxXt.c;			$(CI) UxXt.c
	$(INDENT) WorkingDialog.h;		$(CI) WorkingDialog.h
	$(INDENT) fileSelectionBoxDialog1.c;	$(CI) fileSelectionBoxDialog1.c
	$(INDENT) fileSelectionBoxDialog1.h;	$(CI) fileSelectionBoxDialog1.h
						$(CI) fileSelectionBoxDialog1.i
	$(INDENT) format.c;			$(CI) format.c
	$(INDENT) format.h;			$(CI) format.h
	$(INDENT) object_viewer.c;		$(CI) object_viewer.c
						$(CI) object_viewer.op
						$(CI) object_viewer.prj
	$(INDENT) topLevelShell1.c;		$(CI) topLevelShell1.c
	$(INDENT) topLevelShell1.h;		$(CI) topLevelShell1.h
						$(CI) topLevelShell1.i
	rm -f $(NAME) *.o *BAK *.bak *% core


checkout:
	$(CO) SaAddLogin.h
	$(CO) SaConsoleCalls.h
	$(CO) SaPopCalls.h
	$(CO) Sut.h
	$(CO) SutList.h
	$(CO) SutProto.h
	$(CO) UxMethod.c
	$(CO) UxXt.c
	$(CO) WorkingDialog.h
	$(CO) fileSelectionBoxDialog1.c
	$(CO) fileSelectionBoxDialog1.h
	$(CO) fileSelectionBoxDialog1.i
	$(CO) format.c
	$(CO) format.h
	$(CO) object_viewer.c
	$(CO) object_viewer.op
	$(CO) object_viewer.prj
	$(CO) topLevelShell1.c
	$(CO) topLevelShell1.h
	$(CO) topLevelShell1.i

lint:
	flexelint $(LINTOPTIONS) object_viewer.c format.c