1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- CFLAGS= -I. -O2 -Dsin=sin_x
- SRCS= main.c tftp.c tftpsubs.c tftpd.c
- OBJS= main.o tftp.o tftpsubs.o
- DOBJS= tftpd.o tftpsubs.o
- CC= gcc
- LIBS=
-
- all: tftp tftpd
-
- tftp: ${OBJS}
- ${CC} -o $@ ${CFLAGS} ${OBJS}
-
- tftpd: ${DOBJS}
- ${CC} -o $@ ${CFLAGS} ${DOBJS} ${LIBS}
-
- clean:
- rm -f ${OBJS} ${DOBJS} core tftp tftpd
-
- cleandir: clean
- rm -f tags .depend
-
- depend: ${SRCS}
- mkdep ${CFLAGS} ${SRCS}
-
- install:
- install -s -o root -g root -m 755 tftp /usr/bin/tftp
- install -c -o root -g root -m 444 tftp.1 /usr/man/man1
- install -s -o root -g root -m 755 tftpd /usr/sbin/in.tftpd
- install -c -o root -g root -m 444 tftpd.8 /usr/man/man8
-
- lint: ${SRCS}
- lint ${CFLAGS} ${SRCS}
-
- tags: ${SRCS}
- ctags ${SRCS}
|