File: makefile

package info (click to toggle)
eso-midas 23.02pl1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 146,968 kB
  • sloc: ansic: 360,674; makefile: 6,231; sh: 6,003; pascal: 535; perl: 40; awk: 36; sed: 14
file content (85 lines) | stat: -rw-r--r-- 1,825 bytes parent folder | download | duplicates (7)
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
# 
# .COPYRIGHT:	Copyright (c) 1988-2010 European Southern Observatory,
#						all rights reserved
# .TYPE		make file
# .NAME		$MIDASHOME/$MIDVERS/install/unix/test
# .LANGUAGE	makefile syntax
# .ENVIRONMENT	Unix Systems. 
# .COMMENT	creates executable Shell Scripts
# .REMARKS 
# .AUTHOR	Carlos Guirao
# .VERSION 1.1	910715:		Implementation
# .VERSION 3.0  930308:		Using default.mk file
# .VERSION 3.1  930325:		-Bstatic -lXt. The shared library on SUN returns
#				some undefined.
# .VERSION 3.2  930516:		-Bstatic removed. Unknown in Ultrix.
# 100907	last modif


include ../../../local/default.mk

LINC = .
XWLIB = $(X11_LIBPATH) -lX11
XMLIB = $(X11_LIBPATH) $(MOTIF_LIBPATH) $(X_LIBS)

CFLAGS += $(C_OPT) $(DEBUG) $(LSYS) $(SYS) $(EDITFLAGS) $(OSSYS) $(UNDEFS) -I$(LINC) -I$(INC) $(X11INC) $(XMINC)

.for.f:
	rm -f $*.f
	cp $< $*.f
.for.o:
	rm -f $*.f
	cp $< $*.f
	$(F77) $(FFLAGS) $*.f
	rm -f $*.f
	
# DEPENDENCIES:
all: 

testc.exe: testc.o 
	$(LDCC) testc.o $(SLIB) -o $@

testsiz.exe: testsiz.o 
	$(LDCC) testsiz.o $(SLIB) -o $@

testncurs.exe: testncurs.o 
	$(LDCC) testncurs.o -lncurses $(SLIB) -o $@

testf.exe: testf.o 
	$(LD77_CMD) testf.o $(SLIB) -o $@

testlib.a: testc.o testf.o
	$(AR) $(AR_OPT) testlib.a testc.o testf.o

testx11.exe: testx11.o
	$(LDCC) testx11.o $(XWLIB) $(SLIB) -o $@

motif_rel.exe: testxm.o
	$(LDCC) testxm.o $(SLIB) -o $@

testxm.exe: testxm.o
	$(LDCC) testxm.o $(XMLIB) $(SLIB) -o $@

oserror.exe: oserror.o
	$(LDCC) oserror.o $(SLIB) -o $@

string.exe: string.o
	$(LDCC) string.o $(SLIB) -o $@

fmod.exe: fmod.o
	$(LDCC) fmod.o -lm $(SLIB) -o $@

math.exe: mathf.o mathc.o
	$(LD77_CMD) mathf.o mathc.o $(SLIB) -o $@

testxm.o: testxm.c
	$(CC) $(CFLAGS) -D_NO_PROTO -c $<

testvar.o: testvar.c
	$(CC) $(CFLAGS) -D_NO_PROTO -c $<

clean:
	rm -f *.exe
	rm -f *.f
	rm -f *.o
	rm -f *.a