Browse Source

Merge pull request #7 from lannonbr/master

Sol Part 37: Makefile Galore
Grissess 5 years ago
parent
commit
ef0a3226aa
1 changed files with 12 additions and 0 deletions
  1. 12
    0
      Makefile

+ 12
- 0
Makefile View File

@@ -0,0 +1,12 @@
1
+CFLAGS= -g -DDEBUG_CC
2
+OBJ= lex.yy.o parser.tab.o dsl/seq.o dsl/list.o dsl/array.o dsl/generic.o astprint.o runtime.o gc.o object.o state.o builtins.o solrun.o
3
+
4
+all: $(OBJ)
5
+	git submodule init && git submodule sync && git submodule update
6
+	gcc $(CFLAGS) $? -o sol -lm -ldl
7
+
8
+%.o: %.c
9
+	gcc -c -o $@ $? $(CFLAGS)
10
+
11
+clean:
12
+	rm -f *.o dsl/*.o sol

Loading…
Cancel
Save