Skip to content

Commit

Permalink
conversion to DLL and few other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrinzPlayer committed Aug 7, 2016
1 parent 78f363d commit 91f932c
Show file tree
Hide file tree
Showing 22 changed files with 1,810 additions and 2,588 deletions.
27 changes: 9 additions & 18 deletions Makefile
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
13 changes: 13 additions & 0 deletions compile.cmd
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
82 changes: 0 additions & 82 deletions demos/Guess Number.bat

This file was deleted.

3 changes: 0 additions & 3 deletions demos/demo1.bat

This file was deleted.

30 changes: 0 additions & 30 deletions demos/demo2.bat

This file was deleted.

44 changes: 0 additions & 44 deletions demos/demo3.bat

This file was deleted.

7 changes: 0 additions & 7 deletions demos/demo4.bat

This file was deleted.

21 changes: 0 additions & 21 deletions demos/demo5.bat

This file was deleted.

105 changes: 0 additions & 105 deletions demos/demo6.bat

This file was deleted.

9 changes: 0 additions & 9 deletions demos/demo7.bat

This file was deleted.

13 changes: 0 additions & 13 deletions demos/demo8.bat

This file was deleted.

17 changes: 0 additions & 17 deletions demos/demo9.bat

This file was deleted.

Loading

0 comments on commit 91f932c

Please sign in to comment.