File: Makefile.wat

package info (click to toggle)
libmseed 2.19.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,684 kB
  • sloc: ansic: 10,810; makefile: 145; sh: 114
file content (71 lines) | stat: -rw-r--r-- 1,594 bytes parent folder | download
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
#
#
# Wmake File For libmseed - For Watcom's wmake
# Use 'wmake -f Makefile.wat'

.BEFORE
	@set INCLUDE=.;$(%watcom)\H;$(%watcom)\H\NT
	@set LIB=.;$(%watcom)\LIB386

cc     = wcc386
cflags = -zq
lflags = OPT quiet OPT map
cvars  = $+$(cvars)$- -DWIN32

# To build a DLL uncomment the following two lines
#cflags = -zq -bd
#lflags = OPT quiet OPT map SYS nt_dll

LIB = libmseed.lib
DLL = libmseed.dll

INCS = -I.

OBJS=	fileutils.obj	&
	genutils.obj	&
	gswap.obj	&
	lmplatform.obj	&
	lookup.obj	&
	msrutils.obj	&
	pack.obj	&
	packdata.obj	&
	traceutils.obj	&
	tracelist.obj	&
	parseutils.obj	&
	unpack.obj	&
	unpackdata.obj  &
	selection.obj	&
	logging.obj

all: lib

lib:	$(OBJS) .SYMBOLIC
	wlib -b -n -c -q $(LIB) +$(OBJS)

dll:	$(OBJS) .SYMBOLIC
	wlink $(lflags) name libmseed file {$(OBJS)}

# Source dependencies:
fileutils.obj:	fileutils.c libmseed.h
genutils.obj:	genutils.c libmseed.h
gswap.obj:	gswap.c libmseed.h
lmplatform.obj:	lmplatform.c libmseed.h
lookup.obj:	lookup.c libmseed.h
msrutils.obj:	msrutils.c libmseed.h
pack.obj:	pack.c libmseed.h packdata.h
packdata.obj:	packdata.c libmseed.h packdata.h
traceutils.obj:	traceutils.c libmseed.h
tracelist.obj:	tracelist.c libmseed.h
parseutils.obj:	parseutils.c libmseed.h
unpack.obj:	unpack.c libmseed.h unpackdata.h
unpackdata.obj:	unpackdata.c libmseed.h unpackdata.h
logging.obj:	logging.c libmseed.h

# How to compile sources:
.c.obj:
	$(cc) $(cflags) $(cvars) $(INCS) $[@ -fo=$@

# Clean-up directives:
clean:	.SYMBOLIC
	del *.obj *.map
	del $(LIB) $(DLL)