12345678910111213141516171819202122 |
- SOURCES=base.c settings.c sokoban.c sokoban2.c solver.c savitch.c solution.c
- OBJECTS=$(SOURCES:.c=.o)
- DEPS=gtk+-2.0 libpcre sqlite3
- CFLAGS=`pkg-config --cflags $(DEPS)`
- LIBS=-lz `pkg-config --libs $(DEPS)`
- all: usokoban $(OBJECTS)
- usokoban: $(OBJECTS)
- gcc $(OBJECTS) $(LIBS) -o usokoban
- %.o: %.c
- gcc -c $(CFLAGS) $< -o $@
- install:
- install -D usokoban $(DESTDIR)/bin/usokoban
- clean:
- rm -f $(OBJECTS)
- rm -f usokoban
|