1
1
Fork 0
Browse Source

windows build

thread-physics release0.1
alistair 4 years ago
parent
commit
6323fd175a
  1. 20
      Makefile

20
Makefile

@ -19,16 +19,25 @@ else @@ -19,16 +19,25 @@ else
endif
ifdef debug
CC=$(CC) -g -Wall
CC = $(CC) -g -Wall
endif
.PHONY: default
.PHONY: all
.PHONY: run
.PHONY: run
.PHONY: dist
default: all
default: all
install: all
dist: all
mkdir -p dist
mkdir -p dist/windows
mkdir -p dist/linux
cp main dist/linux
cp main.exe dist/windows
cp SDL2.dll dist/windows
cd dist && zip -r windows.zip windows
cd dist && tar -czvf linux.tar.gz linux
run: all
./main
@ -71,5 +80,6 @@ environment.o: environment.c environment.h @@ -71,5 +80,6 @@ environment.o: environment.c environment.h
clean:
rm c-colours/*.o
rm datastructures/*.o
rm *.o && rm $(EXE)
rm *.o
rm -rf dist

Loading…
Cancel
Save