Rev | Line | |
---|
[1] | 1 | TARGET = vital_tracker |
---|
| 2 | LIBS = `pkg-config gtk+-3.0 --libs` -lasound |
---|
| 3 | CC = gcc |
---|
| 4 | CFLAGS = -g -W `pkg-config --cflags --libs gtk+-3.0` |
---|
| 5 | |
---|
| 6 | .PHONY: default all clean |
---|
| 7 | |
---|
| 8 | default: $(TARGET) |
---|
| 9 | |
---|
| 10 | all: default |
---|
| 11 | |
---|
| 12 | OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c)) |
---|
| 13 | HEADERS = $(wildcard *.h) |
---|
| 14 | |
---|
| 15 | %.o: %.c $(HEADERS) |
---|
| 16 | $(CC) $(CFLAGS) -c $< -o $@ |
---|
| 17 | |
---|
| 18 | .PRECIOUS: $(TARGET) $(OBJECTS) |
---|
| 19 | |
---|
| 20 | $(TARGET): $(OBJECTS) |
---|
| 21 | $(CC) $(OBJECTS) -Wall $(LIBS) -o $@ |
---|
| 22 | |
---|
| 23 | clean: |
---|
| 24 | -rm -f *.o |
---|
| 25 | -rm -f $(TARGET) |
---|
| 26 | |
---|
| 27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.