Some fixes + improvements (Vector) + code reformatting
[cgds.git] / test / Makefile
... / ...
CommitLineData
1CC = gcc
2CFLAGS = -g -std=gnu99 -Wno-implicit-function-declaration
3LDFLAGS = -L../src/obj -lcgds -Wl,-rpath=../src/obj
4INCLUDES = -I..
5
6SRC_DIR = ./
7OBJ_DIR = ./obj
8
9TARGET = test
10
11SRC_FILES = $(wildcard $(SRC_DIR)/*.c)
12H_FILES = lut.h helpers.h
13OBJ_FILES = $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRC_FILES))
14
15all: $(TARGET)
16
17$(TARGET): $(OBJ_FILES)
18 $(CC) $(LDFLAGS) -o $@ $^
19
20$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(H_FILES)
21 $(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $<
22
23clean:
24 rm -f $(OBJ_DIR)/*.o $(TARGET)
25
26.PHONY: all clean