Makefile 363 B

1234567891011121314151617181920212223
  1. CFLAGS += -I$(abspath ../../../src)
  2. CFLAGS += -I$(abspath ../../../src/utils)
  3. ALL=libhostap_imc.so libhostap_imv.so libhostap2_imc.so libhostap2_imv.so
  4. all: $(ALL)
  5. Q=@
  6. E=echo
  7. ifeq ($(V), 1)
  8. Q=
  9. E=true
  10. endif
  11. ifeq ($(QUIET), 1)
  12. Q=@
  13. E=true
  14. endif
  15. lib%.so: %.c
  16. $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -rdynamic -fPIC $<
  17. @$(E) " CC " $@
  18. clean:
  19. rm -f $(ALL)