Makefile 302 B

123456789
  1. nameprog=interface
  2. all: gtk-interface.o $(nameprog)
  3. interface:
  4. gcc *.o -o interface `pkg-config --libs gtk+-3.0` -rdynamic
  5. gtk-interface.o: gtk-interface.o
  6. gcc gtk-interface.c -c `pkg-config --cflags gtk+-3.0` -rdynamic
  7. clear:
  8. rm $(nameprog) gtk-interface.o 2>/dev/null || echo "already cleared?"