/simpletypesystem/trunk

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

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Gustav Hartvigsson
  • Date: 2015-04-06 22:26:50 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150406222650-c98sk463s0xlrwxa
* Switched to CMake to future proof the project a lil' bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
CC=gcc
2
 
 
3
 
# This is the name of the outputed shared object
4
 
LIBRARY=lib/libssts.so #library supersimpletyesystem
5
 
 
6
 
CFLAGS=-std=c11 -Wall -fPIC -g
7
 
 
8
 
OBJECTS=obj/baseobject.o\
9
 
        obj/Error.o obj/Func.o\
10
 
        obj/Map.o\
11
 
        obj/SimpleTypeSystem.o\
12
 
        obj/utils.o
13
 
 
14
 
DEPS=src/baseobject.h\
15
 
        src/Error.o obj/Func.h\
16
 
        src/Map.h\
17
 
        src/SimpleTypeSystem.h\
18
 
        obj/utils.h
19
 
 
20
 
$(LIBRARY):$(OBJECTS)
21
 
        $(CC) $(CFLAGS) -shared -o $@ $^
22
 
 
23
 
obj/%.o: src/%.c src/%.h
24
 
        $(CC) $(CFLAGS) -c -o $@ $<