Makefile 316 B

1234567891011121314151617181920
  1. INSTALLDIR=/home/bus/bin
  2. src = $(wildcard *.cpp *c ../mongoose.c)
  3. hdr = $(wildcard *.h *.hpp)
  4. CC=g++
  5. COPT=-g --std=c++11 -I. -I.. -DMG_ENABLE_LOG=0
  6. piumsg: $(src) $(hdr)
  7. $(CC) $(COPT) -o $@ $^
  8. .PHONY: clean
  9. clean:
  10. rm -f *.o piumsg
  11. .PHONY: install
  12. install: piumsg
  13. mkdir -p $(INSTALLDIR)
  14. cp $< $(INSTALLDIR)