-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
119 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,86 @@ | ||
#CPP = clang++ | ||
#C = clang | ||
CPP = g++ | ||
C = gcc | ||
|
||
### 32 bit Windows | ||
|
||
#LDFLAGS = -LC:\SDL2-2.0.5\i686-w64-mingw32\lib \ | ||
-LC:\SDL2_ttf-2.0.14\i686-w64-mingw32\lib \ | ||
-LC:\SDL2_image-2.0.1\i686-w64-mingw32\lib \ | ||
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf \ | ||
-mwindows -m32 -march=i686 | ||
#CFLAGS = -IC:\SDL2-2.0.5\i686-w64-mingw32\include \ | ||
-IC:\SDL2-2.0.5\i686-w64-mingw32\include\SDL2 \ | ||
-IC:\SDL2_ttf-2.0.14\i686-w64-mingw32\include \ | ||
-IC:\SDL2_image-2.0.1\i686-w64-mingw32\include \ | ||
-Wall -c -std=c89 -m32 -march=i686 | ||
#EXE1 = kiss_example1.exe | ||
#EXE2 = kiss_example2.exe | ||
|
||
### 64 bit Windows | ||
|
||
#LDFLAGS = -LC:\SDL2-2.0.5\x86_64-w64-mingw32\lib \ | ||
-LC:\SDL2_ttf-2.0.14\x86_64-w64-mingw32\lib \ | ||
-LC:\SDL2_image-2.0.1\x86_64-w64-mingw32\lib \ | ||
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf \ | ||
-mwindows | ||
#CFLAGS = -IC:\SDL2-2.0.5\x86_64-w64-mingw32\include \ | ||
-IC:\SDL2-2.0.5\x86_64-w64-mingw32\include\SDL2 \ | ||
-IC:\SDL2_ttf-2.0.14\x86_64-w64-mingw32\include \ | ||
-IC:\SDL2_image-2.0.1\x86_64-w64-mingw32\include \ | ||
-Wall -c -std=c89 | ||
#EXE1 = kiss_example1.exe | ||
#EXE2 = kiss_example2.exe | ||
|
||
### Macintosh | ||
|
||
#LDFLAGS = -framework SDL2 -framework SDL2_ttf -framework SDL2_image | ||
#CFLAGS = -I/Library/Frameworks/SDL2.framework/Headers \ | ||
-I/Library/Frameworks/SDL2_ttf.framework/Headers \ | ||
-I/Library/Frameworks/SDL2_image.framework/Headers \ | ||
-Wall -c -std=c89 | ||
#EXE1 = kiss_example1 | ||
#EXE2 = kiss_example2 | ||
|
||
### Linux | ||
|
||
LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf | ||
CFLAGS = -Wall -c -std=c89 | ||
EXE1 = kiss_example1 | ||
EXE2 = kiss_example2 | ||
|
||
all: $(EXE1) $(EXE2) | ||
|
||
$(EXE1): kiss_example1.o kiss_widgets.o kiss_draw.o kiss_general.o \ | ||
kiss_posix.o | ||
$(C) $^ $(LDFLAGS) -o $@ | ||
|
||
$(EXE2): kiss_example2.o kiss_widgets.o kiss_draw.o kiss_general.o \ | ||
kiss_posix.o | ||
$(C) $^ $(LDFLAGS) -o $@ | ||
|
||
kiss_example1.o: kiss_example1.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
kiss_example2.o: kiss_example2.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
kiss_widgets.o: kiss_widgets.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
kiss_draw.o: kiss_draw.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
kiss_general.o: kiss_general.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
kiss_posix.o: kiss_posix.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
|
||
clean: | ||
rm *.o && rm $(EXE1) && rm $(EXE2) | ||
# del *.o | ||
# del $(EXE1) | ||
# del $(EXE2) | ||
|
||
#CPP = clang++ | ||
#C = clang | ||
CPP = g++ | ||
C = gcc | ||
### 32 bit Windows | ||
#LDFLAGS = -LC:\SDL2-2.0.5\i686-w64-mingw32\lib \ | ||
-LC:\SDL2_ttf-2.0.14\i686-w64-mingw32\lib \ | ||
-LC:\SDL2_image-2.0.1\i686-w64-mingw32\lib \ | ||
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf \ | ||
-mwindows -m32 -march=i686 | ||
#CFLAGS = -IC:\SDL2-2.0.5\i686-w64-mingw32\include \ | ||
-IC:\SDL2-2.0.5\i686-w64-mingw32\include\SDL2 \ | ||
-IC:\SDL2_ttf-2.0.14\i686-w64-mingw32\include \ | ||
-IC:\SDL2_image-2.0.1\i686-w64-mingw32\include \ | ||
-Wall -c -std=c89 -m32 -march=i686 | ||
#BIN1 = kiss_example1.exe | ||
#BIN2 = kiss_example2.exe | ||
### 64 bit Windows | ||
#LDFLAGS = -LC:\SDL2-2.0.5\x86_64-w64-mingw32\lib \ | ||
-LC:\SDL2_ttf-2.0.14\x86_64-w64-mingw32\lib \ | ||
-LC:\SDL2_image-2.0.1\x86_64-w64-mingw32\lib \ | ||
-lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf \ | ||
-mwindows | ||
#CFLAGS = -IC:\SDL2-2.0.5\x86_64-w64-mingw32\include \ | ||
-IC:\SDL2-2.0.5\x86_64-w64-mingw32\include\SDL2 \ | ||
-IC:\SDL2_ttf-2.0.14\x86_64-w64-mingw32\include \ | ||
-IC:\SDL2_image-2.0.1\x86_64-w64-mingw32\include \ | ||
-Wall -c -std=c89 | ||
#BIN1 = kiss_example1.exe | ||
#BIN2 = kiss_example2.exe | ||
### macOS | ||
#LDFLAGS = -framework SDL2 -framework SDL2_ttf -framework SDL2_image | ||
#CFLAGS = -I/Library/Frameworks/SDL2.framework/Headers \ | ||
-I/Library/Frameworks/SDL2_ttf.framework/Headers \ | ||
-I/Library/Frameworks/SDL2_image.framework/Headers \ | ||
-Wall -c -std=c89 | ||
#BIN1 = kiss_example1 | ||
#BIN2 = kiss_example2 | ||
### Linux | ||
LDFLAGS = -lSDL2 -lSDL2_image -lSDL2_ttf | ||
CFLAGS = -Wall -c -std=c89 | ||
BIN1 = kiss_example1 | ||
BIN2 = kiss_example2 | ||
all: $(BIN1) $(BIN2) | ||
$(BIN1): kiss_example1.o kiss_widgets.o kiss_draw.o kiss_general.o \ | ||
kiss_posix.o | ||
$(C) $^ $(LDFLAGS) -o $@ | ||
$(BIN2): kiss_example2.o kiss_widgets.o kiss_draw.o kiss_general.o \ | ||
kiss_posix.o | ||
$(C) $^ $(LDFLAGS) -o $@ | ||
kiss_example1.o: kiss_example1.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
kiss_example2.o: kiss_example2.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
kiss_widgets.o: kiss_widgets.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
kiss_draw.o: kiss_draw.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
kiss_general.o: kiss_general.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
kiss_posix.o: kiss_posix.c | ||
$(C) $(CFLAGS) $^ -o $@ | ||
clean: | ||
rm *.o && rm $(BIN1) && rm $(BIN2) | ||
# del *.o | ||
# del $(BIN1) | ||
# del $(BIN2) | ||