/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CC=gcc

# This is the name of the outputed shared object
LIBRARY=lib/libssts.so #library supersimpletyesystem

CFLAGS=-std=c11 -Wall -fPIC -g

OBJECTS=obj/baseobject.o\
        obj/Error.o obj/Func.o\
        obj/Map.o\
        obj/SimpleTypeSystem.o\
        obj/utils.o

DEPS=src/baseobject.h\
        src/Error.o obj/Func.h\
        src/Map.h\
        src/SimpleTypeSystem.h\
        obj/utils.h

$(LIBRARY):$(OBJECTS)
	$(CC) $(CFLAGS) -shared -o $@ $^

obj/%.o: src/%.c src/%.h
	$(CC) $(CFLAGS) -c -o $@ $<