Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
laochailan committed Mar 3, 2014
0 parents commit bb28aca
Show file tree
Hide file tree
Showing 93 changed files with 45,390 additions and 0 deletions.
75 changes: 75 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
CCX = g++
CC = gcc

#for cross compiling

## Windows i686
# ARCH = i686-w64-mingw32-
# BINPREFIX = /usr/i686-w64-mingw32/bin/
# EXT = .exe

# ARCH =
# BINPREFIX =
# EXT =

TARGET = SpikeRecorder
OBJECTS = \
src/engine/RecordingManager.o \
src/widgets/LayoutItem.o \
src/widgets/BoxLayout.o \
src/widgets/Widget.o \
src/widgets/Painter.o \
src/widgets/PushButton.o \
src/widgets/DropDownList.o \
src/widgets/ScrollBar.o \
src/widgets/Application.o \
src/widgets/BitmapFontGL.o \
src/widgets/TextureGL.o \
src/widgets/LoadTexture.o \
src/Game.o \
src/main.o \
src/AudioView.o \
src/ConfigView.o

ifeq ($(ARCH),)
UNAME_S = $(shell uname -s)
else
UNAME_S =
endif

CFLAGS = -g -O2 -Isrc -Isupport -I. -Wall

ifeq ($(UNAME_S),Darwin)
OBJECTS += src/widgets/native/FileDialogMac.o
OBJCFILES = support/SDLMain.m src/widgets/native/FileDialogMac.mm

CFLAGS += -I/Library/Frameworks/SDL.framework/Headers -I/Library/Frameworks/SDL_image.framework/Headers # for Mac OS X
LIBS = libbass.dylib $(OBJCFILES) -framework Cocoa -framework SDL -framework SDL_image -framework OpenGL -framework GLUT # for Mac OS X
else
CFLAGS += `$(BINPREFIX)sdl-config --cflags` # for Windows/Linux
EXTRA_CMD =
ifeq ($(UNAME_S),Linux)
OBJECTS += src/widgets/native/FileDialogLinux.o
LIBS = `sdl-config --libs` -lSDL_image -lGL -lGLU -lbass # for Linux
else
OBJECTS += src/widgets/native/FileDialogWin.o
LIBS = -static -lSDL_image `$(BINPREFIX)sdl-config --static-libs`
LIBS += -lglut -lwebp -lpng -ltiff -lz -ljpeg -lopengl32 -lglu32 -dynamic support/bass.lib -Wl,--enable-auto-import # for Windows
endif
endif

%.o: %.c
$(ARCH)$(CC) -o $@ -c $< $(CFLAGS)

%.o: %.cpp
$(ARCH)$(CCX) -o $@ -c $< $(CFLAGS)

$(TARGET): $(OBJECTS)
$(ARCH)$(CCX) -o $(TARGET)$(EXT) $(OBJECTS) $(CFLAGS) $(LIBS)

all:
$(TARGET)

clean:
rm -f $(TARGET) $(TARGET).exe $(OBJECTS)
rm -rf $(TARGET).app
Binary file added bass.chm
Binary file not shown.
Binary file added bass.dll
Binary file not shown.
Binary file added data/ascii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/backward.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
103 changes: 103 additions & 0 deletions data/backward.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/backwardhigh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/config.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions data/config.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/confighigh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bb28aca

Please sign in to comment.