/gpump/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/gpump/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gustav Hartvigsson
  • Date: 2014-02-08 17:53:39 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140208175339-yxn38uceduzzvswx
Initial code.

Non of the code is actualy functional.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC=gcc
 
2
CFLAGS=-std=c11 -Wall `pkg-config gio-2.0 gtk+-3.0 rest-0.7 --cflags`
 
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\
 
12
        ./obj/GPumpProfiles.o
 
13
 
 
14
DEPS=./src/*.h
 
15
 
 
16
$(EXEC): $(OBJS)
 
17
        mkdir -p ./bin
 
18
        $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
 
19
 
 
20
obj/%.o: src/%.c $(DEPS)
 
21
        mkdir -p ./obj
 
22
        $(CC) $(CFLAGS) $(LIBS) -c -o $@ $<