Makefile 425 B

12345678910111213141516171819202122
  1. SOURCES=base.c settings.c sokoban.c sokoban2.c solver.c savitch.c solution.c
  2. OBJECTS=$(SOURCES:.c=.o)
  3. DEPS=gtk+-2.0 libpcre sqlite3
  4. CFLAGS=`pkg-config --cflags $(DEPS)`
  5. LIBS=-lz `pkg-config --libs $(DEPS)`
  6. all: usokoban $(OBJECTS)
  7. usokoban: $(OBJECTS)
  8. gcc $(OBJECTS) $(LIBS) -o usokoban
  9. %.o: %.c
  10. gcc -c $(CFLAGS) $< -o $@
  11. install:
  12. install -D usokoban $(DESTDIR)/bin/usokoban
  13. clean:
  14. rm -f $(OBJECTS)
  15. rm -f usokoban