Makefile 310 B

1234567891011121314151617
  1. # This is BSD Makefile
  2. # BSD GNU
  3. # ${.TARGET} $@
  4. # ${.ALLSRC} $^
  5. # ${.IMPSRC} $<
  6. CFLAGS += -Wall -O0 -g
  7. all: loader
  8. # -pthread required to dlopen libraries that depends on pthread
  9. loader: loader.c
  10. ${CC} ${CFLAGS} -o ${.TARGET} ${.ALLSRC} -pthread -Wl,-z,'wxneeded'
  11. clean:
  12. rm -f loader