mirror of https://github.com/flysand7/ciabatta.git
21 lines
465 B
Makefile
21 lines
465 B
Makefile
|
|
GNUFLAGS=-Iinc -Icode
|
|
CLFLAGS=/link /incremental:no /subsystem:windows /nodefaultlib kernel32.lib
|
|
|
|
CC=clang
|
|
CFLAGS=$(GNUFLAGS)
|
|
LDFLAGS=/nologo /nodefaultlib /entry:mainCRTStartup
|
|
|
|
SRC_DIR := code
|
|
OBJ_DIR := build
|
|
SRC_FILES := $(wildcard $(SRC_DIR)/*.c)
|
|
OBJ_FILES := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRC_FILES))
|
|
|
|
ciabatta.lib: $(OBJ_FILES)
|
|
lib $(LDFLAGS) /out:lib/$@ $^
|
|
|
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
.PHONY: ciabatta.lib
|