File: makefile

package info (click to toggle)
wise 2.4.1-21
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 27,140 kB
  • sloc: ansic: 276,365; makefile: 1,003; perl: 886; lex: 93; yacc: 81; sh: 24
file content (61 lines) | stat: -rw-r--r-- 884 bytes parent folder | download | duplicates (3)
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



.SUFFIXES :  .dy



NBASEOBJ = wiseconfig.o \
	wisestring.o \
	wiseerror.o \
	wisememman.o \
	wisefile.o \
	wiserandom.o \
	wisetime.o \
	wiseoverlay.o \
	wisestreaminterface.o \
	commandline.o \
	linesubs.o



#CFLAGS += -c  -g -DUNIX -DWISE_MEMORY_WATCH
CFLAGS += $(CPPFLAGS) -c -DUNIX -pthread
LDFLAGS += -g -lm 
DFLAGS = -n Wise2_ -a _api.h -b _api.t -l -D
AR_OPTIONS = ru

RANLIB_NEEDED = 0

#
# Base library build - call wisebase
#

libwisebase.a : $(NBASEOBJ) 
	ar $(AR_OPTIONS) libwisebase.a $?
	-if test -x /bin/ranlib; then /bin/ranlib libwisebase.a; else exit 0; fi
	-if test -x /usr/bin/ranlib; then /usr/bin/ranlib libwisebase.a; else exit 0; fi

init : 
	dyc $(DFLAGS) *.dy

.c.o :
	$(CC) $(CFLAGS) $?

.dy.c : 
	dyc $(DFLAGS)  $<	

.dy.o :
	dyc $(DFLAGS) $<	
	$(CC) $(CFLAGS) $*.c

#
# pro2DNAmatrix.c pro2DNAmatrix.h : pro2DNAmatrix.dy
#	dy pro2DNAmatrix.dy