patch-src_makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-src_makefile,v 1.4 2017/06/06 09:24:31 benoit Exp $
  2. --- src/makefile.orig Mon Jun 22 18:26:15 2015
  3. +++ src/makefile Mon Jun 22 18:28:55 2015
  4. @@ -81,25 +81,17 @@ NE_NOWCHAR=
  5. NE_DEBUG=
  6. NE_TEST=
  7. -CC=c99
  8. +CC?=c99
  9. -ifeq ($(CC),gcc)
  10. GCCFLAGS=-std=c99 -Wall -Wno-parentheses
  11. -endif
  12. CFLAGS=$(OPTS) $(GCCFLAGS) \
  13. - -D_REGEX_LARGE_OFFSETS -D_GNU_SOURCE -DSTDC_HEADERS -Dinline=__inline__ \
  14. - $(if $(NE_NOWCHAR), -DNOWCHAR,) \
  15. - $(if $(NE_TEST), -DNE_TEST -coverage,) \
  16. - $(if $(NE_DEBUG), -g,-O3 -DNDEBUG) \
  17. - $(if $(NE_TERMCAP), -DTERMCAP,) \
  18. - $(if $(NE_ANSI), -DTERMCAP -DANSI,)
  19. + -D_REGEX_LARGE_OFFSETS -D_GNU_SOURCE -DSTDC_HEADERS -Dinline=__inline__ -DNDEBUG
  20. -
  21. LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
  22. -ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
  23. - $(CC) $(OPTS) $(LDFLAGS) $(if $(NE_TEST), -coverage -lefence,) $^ -lm $(LIBS) -o $(PROGRAM)
  24. +ne: $(OBJS)
  25. + $(CC) $(OPTS) $(LDFLAGS) -lm -lcurses $(LIBS) -o $(PROGRAM) $(OBJS)
  26. clean:
  27. rm -f ne *.o *.gcda *.gcda.info *.gcno core