forked from s-macke/SAM
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conversion to DLL and few other changes
- Loading branch information
1 parent
78f363d
commit 91f932c
Showing
22 changed files
with
1,810 additions
and
2,588 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,18 @@ | ||
OBJS = reciter.o sam.o render.o main.o debug.o | ||
|
||
CC = gcc | ||
|
||
# libsdl present | ||
CFLAGS = -Wall -O2 -DUSESDL `sdl-config --cflags` | ||
LFLAGS = `sdl-config --libs` | ||
OBJ = main.o reciter.o sam.o render.o | ||
|
||
CFLAGS = -Wall -O2 | ||
LFLAGS = | ||
|
||
# no libsdl present | ||
#CFLAGS = -Wall -O2 | ||
#LFLAGS = | ||
sam32: $(OBJ) | ||
$(CC) $(OBJ) $(LFLAGS) -shared -o sam-i686.dll | ||
|
||
sam: $(OBJS) | ||
$(CC) -o sam $(OBJS) $(LFLAGS) | ||
sam64: $(OBJ) | ||
$(CC) $(OBJ) $(LFLAGS) -shared -o sam-x86_64.dll | ||
|
||
%.o: src/%.c | ||
$(CC) $(CFLAGS) -c $< | ||
|
||
package: | ||
tar -cvzf sam.tar.gz README.md Makefile sing src/ | ||
|
||
clean: | ||
rm *.o | ||
|
||
archive: | ||
rm -f sam_windows.zip | ||
cd ..; zip SAM/sam_windows.zip SAM/sam.exe SAM/SDL.dll SAM/README.md SAM/demos/*.bat | ||
del *.o |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@echo off | ||
set path=C:\mingw-w64\mingw32\bin | ||
mingw32-make -B sam32 | ||
mingw32-make clean | ||
|
||
|
||
|
||
set path=C:\mingw-w64\mingw64\bin | ||
mingw32-make -B sam64 | ||
mingw32-make clean | ||
|
||
|
||
pause |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.