File: Makefile

package info (click to toggle)
spline 1.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 164 kB
  • sloc: ansic: 355; makefile: 193; sh: 35
file content (52 lines) | stat: -rw-r--r-- 1,143 bytes parent folder | download | duplicates (2)
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
# Makefile for aspline

RM      = rm -f

CC      = gcc
CFLAGS += -Wall -Wstrict-prototypes -Wmissing-prototypes\
 -Wmissing-declarations -Wbad-function-cast -Wnested-externs\
 -Wcast-qual -Wcast-align -Wshadow -Wwrite-strings -Wpointer-arith\
 -Wformat\
 -Wfloat-equal\

# -mfpmath=sse
# -mfpmath=387
#DEFS	= -D_GNU_SOURCE -DHAVE_GETLINE -DOLD_OUTPUT -DVERSION=\"1.2\"
DEFS	= -D_GNU_SOURCE -DHAVE_GETLINE -DVERSION=\"1.2\"
LIBS    = -lm

INSTOPT=
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTOPT += -s
endif

BIN     = aspline
MAN     = $(BIN).1
SRCS    = utils.c
OBJS	= ${SRCS:.c=.o}

prefix  = $(DESTDIR)/usr
BINDIR  = $(prefix)/bin
MANDIR  = $(prefix)/share/man/man1

all:	$(BIN)

.c.o:	$(SRCS)
	$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c -o $@ $<

$(BIN):	$(SRCS) $(OBJS) $(BIN).c
	$(CC) $(CPPFLAGS) $(CFLAGS) $(DEFS) $(LDFLAGS) -o $(BIN) $(BIN).c $(OBJS) $(LIBS)

clean:
	$(RM) *.o *~ *.bak \#*\# errors core* a.out TAGS *.out

distclean: clean
	$(RM) $(BIN)

realclean:	distclean
	-rcsclean

install:	$(MAN) $(BIN)
	install -d -m 755 $(BINDIR) $(MANDIR)
	install $(INSTOPT) -m 755 $(BIN) $(BINDIR)
	install -m 644 $(MAN) $(MANDIR)