CGI Bash Shell Interface
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 662B

123456789101112131415161718192021222324252627282930313233343536373839
  1. CC = gcc
  2. CFLAGS = -O2 -s -D_GNU_SOURCE
  3. LDLIBS =
  4. PREFIX =
  5. BINDIR = $(PREFIX)/usr/bin
  6. all: cbsi
  7. @echo "All done!"
  8. cbsi: buffer.o cbsi.o error.o mimetype.o subshell.o
  9. $(CC) $(CFLAGS) $(LDLIBS) buffer.o cbsi.o error.o mimetype.o subshell.o -o cbsi
  10. buffer.o: buffer.c
  11. $(CC) $(CFLAGS) -c buffer.c
  12. cbsi.o: cbsi.c
  13. $(CC) $(CFLAGS) -c cbsi.c
  14. error.o: error.c
  15. $(CC) $(CFLAGS) -c error.c
  16. mimetype.o: mimetype.c
  17. $(CC) $(CFLAGS) -c mimetype.c
  18. subshell.o: subshell.c
  19. $(CC) $(CFLAGS) -c subshell.c
  20. install:
  21. mkdir -p $(BINDIR)
  22. cp cbsi $(BINDIR)
  23. @echo "All done!"
  24. uninstall:
  25. @rm -f $(BINDIR)/cbsi
  26. @echo "All done!"
  27. clean:
  28. rm -f cbsi *.o
  29. @echo "All done!"