diff options
| author | Franklin Wei <git@fwei.tk> | 2015-05-12 19:48:05 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-05-12 19:48:05 -0400 |
| commit | 9082eb2a10f935a23e140e0089fae26570081883 (patch) | |
| tree | ca050176948fe7df02658b5510820542a867a35f /Makefile | |
| parent | eff3b4784cc6bffabbb5e7fbf3b141e85290ab85 (diff) | |
| download | market-sim-9082eb2a10f935a23e140e0089fae26570081883.zip market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.gz market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.bz2 market-sim-9082eb2a10f935a23e140e0089fae26570081883.tar.xz | |
added makefile (finally)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e2fba81 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = cc + +SRC := $(wildcard src/*.c) +OBJ := $(SRC:.c=.o) + +CFLAGS = -Isrc/ -O3 -std=c99 -g -Wall -fsanitize=address -lcurl + +HEADERS := $(wildcard src/*.h) + +market-sim: $(OBJ) Makefile $(HEADERS) + @echo "LD $@" + @$(CC) $(OBJ) -o $@ $(CFLAGS) + +%.o: %.c Makefile $(HEADERS) + @echo "CC $<" + @$(CC) $(CFLAGS) -c $< -o $@ + +clean: + @echo "Cleaning build directory..." + @rm -f $(OBJ) market-sim + +all: + @echo $(SRC) $(OBJ) |