language

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

Makefile (490B)


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