Added librarys and test application

This commit is contained in:
Gulum
2017-10-22 14:26:55 +02:00
parent 7e0c0d8a6c
commit ac45f1f944
206 changed files with 68009 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
CC = g++
CFLAGS = -Wall
EXE = DarkRP2D
LIB_PATH =
INC_PATH =
LIBS =
LIB_PATH = lib/
INC_PATH = include/
LIBS = -lmingw32 -lSDL2main -lSDL2 -lbox2d -lentityx
SRCDIR = src
BUILDDIR = build
@@ -13,20 +13,23 @@ OBJ := $(subst $(SRCDIR), $(BUILDDIR), $(OBJ))
.PHONY: all clean build run debug
all: build $(EXE)
all: build $(EXE) copyDLLs
run: all
$(BUILDDIR)/$(EXE)
$(BUILDDIR)/$(EXE)
$(EXE): $(OBJ)
$(CC) $(CFLAGS) -o $(BUILDDIR)/$@ $(OBJ) -static-libgcc -static-libstdc++
$(CC) $(CFLAGS) -o $(BUILDDIR)/$@ $(OBJ) -static-libgcc -static-libstdc++ -L$(LIB_PATH) $(LIBS)
$(OBJ): $(SRC)
$(CC) $(CFLAGS) -c $< -o $@
$(CC) $(CFLAGS) -c $< -o $@ -I$(INC_PATH)
build:
C:\\MinGW\\msys\\1.0\\bin\\mkdir -p $(BUILDDIR)
copyDLLs:
C:\\MinGW\\msys\\1.0\\bin\\cp dlls/* build/
clean:
rm -rf $(BUILDDIR)