patch-examples_Makefile 620 B

1234567891011121314151617
  1. $OpenBSD: patch-examples_Makefile,v 1.1 2017/03/08 17:41:42 sthen Exp $
  2. --- examples/Makefile.orig Wed Mar 8 17:35:04 2017
  3. +++ examples/Makefile Wed Mar 8 17:36:12 2017
  4. @@ -9,10 +9,10 @@ DEBUG_TARGETS = xor_train_debug xor_test_debug xor_tes
  5. all: $(TARGETS)
  6. %: %.c Makefile
  7. - $(GCC) -O3 $< -o $@ -lfann -lm
  8. + $(GCC) ${CFLAGS} $< -o $@ -lfann -lm
  9. %_fixed: %.c Makefile
  10. - $(GCC) -O3 -DFIXEDFANN $< -o $@ -lfixedfann -lm
  11. + $(GCC) ${CFLAGS} -DFIXEDFANN $< -o $@ -lfixedfann -lm
  12. clean:
  13. rm -f $(TARGETS) $(DEBUG_TARGETS) xor_fixed.data *.net *~ *.obj *.exe *.tds noscale.txt withscale.txt scale_test_results.txt