Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Makefile 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #
  2. # Copyright (c) 1987 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley. The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. # @(#)Makefile 5.8 (Berkeley) 9/20/88
  18. #
  19. # We override /usr/include/arpa/tftp.h with our own because
  20. # we want tu_block to be unsigned short, not short as on most platforms
  21. #
  22. CFLAGS= -I. -O2 -Dsin=sin_x
  23. SRCS= main.c tftp.c tftpsubs.c tftpd.c
  24. OBJS= main.o tftp.o tftpsubs.o
  25. DOBJS= tftpd.o tftpsubs.o
  26. CC= gcc
  27. LIBS= # -linet
  28. all: tftp tftpd
  29. tftp: ${OBJS}
  30. ${CC} -o $@ ${CFLAGS} ${OBJS} # -linet
  31. tftpd: ${DOBJS}
  32. ${CC} -o $@ ${CFLAGS} ${DOBJS} ${LIBS}
  33. clean:
  34. rm -f ${OBJS} ${DOBJS} core tftp tftpd
  35. cleandir: clean
  36. rm -f tags .depend
  37. depend: ${SRCS}
  38. mkdep ${CFLAGS} ${SRCS}
  39. install:
  40. install -s -o root -g root -m 755 tftp /usr/bin/tftp
  41. install -c -o root -g root -m 444 tftp.1 /usr/man/man1
  42. install -s -o root -g root -m 755 tftpd /usr/sbin/in.tftpd
  43. install -c -o root -g root -m 444 tftpd.8 /usr/man/man8
  44. lint: ${SRCS}
  45. lint ${CFLAGS} ${SRCS}
  46. tags: ${SRCS}
  47. ctags ${SRCS}