language

Some fools attempt at an interpreted language
Log | Files | Refs

Makefile (432B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SRC_DIR = ../../src
INC_DIR = ../../inc

CC      = gcc
CFLAGS  = -std=c99 -Wall -I$(INC_DIR)

DEPS    = i$(INC_DIR)/helper.h \
                      ns.h     \
                      var.h    \

OBJ     = test.o            \
          $(SRC_DIR)/ns.o   \
          $(SRC_DIR)/var.o

OUT     = test

%.o: %.c $(DEPS)
	$(CC) $(CFLAGS) -c -o $@ $<

$(OUT): $(OBJ)
	$(CC) $(CFLAGS) -o $@ $^

clean:
	rm *.o
	rm $(SRC_DIR)/*.o
	rm $(OUT)