makefile 436 B

1234567891011121314151617181920212223
  1. #!/usr/bin/make
  2. # $Id: makefile,v 1.9 2009/02/10 12:20:09 stoecker Exp $
  3. ifdef windir
  4. CC = gcc
  5. OPTS = -Wall -W -DWINDOWSVERSION
  6. LIBS = -lwsock32
  7. else
  8. OPTS = -Wall -W
  9. endif
  10. ntripserver: ntripserver.c
  11. $(CC) $(OPTS) $? -O3 -DNDEBUG -o $@ $(LIBS)
  12. debug: ntripserver.c
  13. $(CC) $(OPTS) $? -g -o ntripserver $(LIBS)
  14. clean:
  15. $(RM) -f ntripserver core
  16. archive:
  17. tar -cvzf ntripserver.tgz makefile ntripserver.c README startntripserver.sh