language

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

Makefile (531B)


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
27
28
29
SRC_DIR = ../../src
INC_DIR = ../../inc

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

DEPS    = i$(INC_DIR)/is_mdata.h \
                      helper.h   \
                      fh.h       \
                      is.h       \
                      bc.h       \

OBJ     = test.o          \
          $(SRC_DIR)/fh.o \
          $(SRC_DIR)/is.o \
          $(SRC_DIR)/bc.o

OUT     = test

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

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

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