language

some fools attempt at an interpreted language
Log | Files | Refs | README

Makefile (547B)


      1 SRC_DIR = ../../../src
      2 INC_DIR = ../../../inc
      3 
      4 CC      = gcc
      5 CFLAGS  = -std=c99 -Wall -I$(INC_DIR)
      6 
      7 DEPS    = i$(INC_DIR)/helper.h \
      8                       ns.h     \
      9                       object.h \
     10                       stk.h    \
     11                       var.h    \
     12 
     13 OBJ     = test.o            \
     14           $(SRC_DIR)/stk.o  \
     15           $(SRC_DIR)/object.o \
     16           $(SRC_DIR)/ns.o   \
     17           $(SRC_DIR)/var.o
     18 
     19 OUT     = test
     20 
     21 %.o: %.c $(DEPS)
     22 	$(CC) $(CFLAGS) -c -o $@ $<
     23 
     24 $(OUT): $(OBJ)
     25 	$(CC) $(CFLAGS) -o $@ $^
     26 
     27 clean:
     28 	rm *.o
     29 	rm $(OUT)