/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk
1 by Gustav Hartvigsson
Initial code.
1
CC=gcc
3 by Gustav Hartvigsson
Something is wrong with GtkListStore it seems,
2
CFLAGS=-std=c11 -Wall -g `pkg-config gio-2.0 gtk+-3.0 rest-0.7 --cflags`
1 by Gustav Hartvigsson
Initial code.
3
LIBS=`pkg-config gio-2.0 gtk+-3.0 rest-0.7 --libs`
4
5
EXEC=./bin/gpump
6
7
OBJS=./obj/main.o\
8
	./obj/GPumpApp.o\
9
	./obj/GPumpAuth.o\
10
	./obj/GPumpCommentContainer.o\
11
	./obj/GPumpPostContainer.o\
14 by Gustav Hartvigsson
* Started work on the settings dioloug.
12
	./obj/GPumpProfiles.o\
20 by Gustav Hatvigsson
* Added a singeltonian class to keep settings data in.
13
	./obj/GPumpSettings.o\
14
	./obj/GPumpSettingsData.o
1 by Gustav Hartvigsson
Initial code.
15
16
DEPS=./src/*.h
17
18
$(EXEC): $(OBJS)
19
	mkdir -p ./bin
20
	$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
21
22
obj/%.o: src/%.c $(DEPS)
23
	mkdir -p ./obj
24
	$(CC) $(CFLAGS) $(LIBS) -c -o $@ $< 
14 by Gustav Hartvigsson
* Started work on the settings dioloug.
25
26
.PHONY: run clean
27
.IGNORE: run clean
28
29
clean:
30
	rm ./obj/ -R
31
	rm ./bin/ -R
32
33
run: $(EXEC)
34
	./bin/gpump