libfuncs is collection of code (list, queue, circular buffer, io, logging, etc.). https://georgi.unixsol.org/programs/libfuncs/
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 608B

12345678910111213141516171819202122232425262728
  1. CC = $(CROSS)$(TARGET)gcc
  2. LINK = $(CROSS)$(TARGET)ld -o
  3. LIBRARY_LINK_OPTS = -L. -r
  4. CFLAGS = -O2 -ggdb -std=c99 -D_GNU_SOURCE
  5. CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Wstrict-prototypes
  6. RM = /bin/rm -f
  7. Q=@
  8. OBJS = queue.o list.o cbuf.o io.o log.o http_response.o asyncdns.o \
  9. server.o misc.o
  10. PROG = libfuncs.a
  11. all: $(PROG)
  12. $(PROG): $(OBJS)
  13. $(Q)echo " LINK $(PROG)"
  14. $(Q)$(LINK) $@ $(LIBRARY_LINK_OPTS) $(OBJS)
  15. %.o: %.c libfuncs.h
  16. $(Q)echo " CC libfuncs $<"
  17. $(Q)$(CC) $(CFLAGS) -c $<
  18. clean:
  19. $(Q)echo " RM $(PROG) $(OBJS)"
  20. $(Q)$(RM) $(PROG) *.o core *.core *~
  21. distclean: clean