/+junk/GObject_tutorial

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/GObject_tutorial

« back to all changes in this revision

Viewing changes to pt1_animals_done/Makefile

  • Committer: Gustav Hartvigsson
  • Date: 2017-04-04 20:29:08 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20170404202908-37q4rzsskk2nzuaz
First lesson.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
CC=gcc
 
2
CFLAGS=-std=c11 `pkg-config --cflags glib-2.0 gio-2.0 gobject-2.0`
 
3
LDFLAGS=`pkg-config --libs glib-2.0 gio-2.0 gobject-2.0`
 
4
 
 
5
EXEC=main
 
6
 
 
7
SRC=main.c\
 
8
    animal.c\
 
9
    dog.c\
 
10
    cat.c
 
11
 
 
12
OBJ=main.o\
 
13
    animal.o\
 
14
    dog.o\
 
15
    cat.o
 
16
 
 
17
 
 
18
$(EXEC): $(OBJ)
 
19
        $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
 
20
 
 
21
%.o: %.c
 
22
        $(CC) -c -o $@ $< $(CFLAGS)
 
23
 
 
24
.PHONY: clean run
 
25
 
 
26
clean:
 
27
        rm -f $(OBJ) $(EXEC)