cflags.diff 543 B

1234567891011121314151617181920212223242526
  1. --- Makefile.orig 2018-03-29 09:57:17.598456271 -0700
  2. +++ Makefile 2018-03-29 09:58:53.390396527 -0700
  3. @@ -1,18 +1,20 @@
  4. CC = gcc
  5. -CFLAGS = -Wall \
  6. +DEF_FLAGS = -Wall \
  7. -DG_DISABLE_DEPRECATED \
  8. -DGDK_DISABLE_DEPRECATED \
  9. -DGDK_PIXBUF_DISABLE_DEPRECATED \
  10. -DGTK_DISABLE_DEPRECATED
  11. +CFLAGS = -O2
  12. +
  13. GKT = `pkg-config gtk+-2.0 --cflags --libs`
  14. all: myGtkMenu
  15. myGtkMenu: main.c
  16. - $(CC) main.c -o myGtkMenu $(CFLAGS) $(GKT)
  17. + $(CC) main.c -o myGtkMenu $(CFLAGS) $(DEF_FLAGS) $(GKT)
  18. clean:
  19. rm -f *.o myGtkMenu