File: Makefile

package info (click to toggle)
netstd 3.07-7slink.3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 6,312 kB
  • ctags: 9,027
  • sloc: ansic: 72,107; cpp: 6,144; makefile: 1,650; yacc: 1,614; sh: 1,164; perl: 308; awk: 46
file content (19 lines) | stat: -rw-r--r-- 422 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
CC = gcc
CFLAGS = -O2 -fomit-frame-pointer -Dsin=x_sin
LDFLAGS = -s

GLIBC=$(shell grep -s -c __GLIBC__ /usr/include/features.h)
ifeq ($(GLIBC),0)
CFLAGS += -include /usr/include/bsd/bsd.h -I /usr/include/bsd
LIBS += -lbsd
endif

tftp: tftp.o main.o tftpsubs.o

install: tftp
	install -o root -g root -m 0755 tftp ${BASEDIR}/usr/bin
	install -o root -g root -m 0644 tftp.1 ${BASEDIR}/usr/man/man1

clean:
	rm -f *.o tftp