moved files to trunk directory
git-svn-id: svn://anubis/dwscr/trunk@83 5bef9df8-b654-44bb-925b-0ff18baa8f8c
This commit is contained in:
1 parent
78092ee118
commit
68d41e9c63
26 files changed
+2184
No files matched your search
@@ -0,0 +1,74 @@
|
||||
|
||||
# Author: Josh Holtrop
|
||||
# DornerWorks screensaver
|
||||
|
||||
# set this to compile in "debug" mode
|
||||
#DEBUG := 1
|
||||
# set this to be in "window mode" - i.e. do not hide mouse
|
||||
# cursor and grab input
|
||||
#WINDOW_MODE := 1
|
||||
|
||||
OBJS = dwscr.o wfobj/WFObj.o LoadFile/LoadFile.o ss/ss.a
|
||||
TARGET = dwscr
|
||||
export CXXFLAGS := -O2 -Wall
|
||||
export CPPFLAGS
|
||||
ifdef DEBUG
|
||||
CPPFLAGS += -DDEBUG
|
||||
endif
|
||||
ifdef WINDOW_MODE
|
||||
CPPFLAGS += -DWINDOW_MODE
|
||||
endif
|
||||
ifdef WIN32
|
||||
export CP := copy
|
||||
export MV := rename
|
||||
export CC := mingw32-gcc
|
||||
export CXX := mingw32-g++
|
||||
SDL_BASE := C:\apps\SDL-1.2.13
|
||||
ODE_BASE := C:\apps\ode-0.9
|
||||
export CPPFLAGS += -I$(SDL_BASE)\include -I$(ODE_BASE)\include -D_GNU_SOURCE=1 -Dmain=SDL_main
|
||||
LDFLAGS += -L$(SDL_BASE)\lib -L$(ODE_BASE)\lib\releasedll -lopengl32 -lglu32 -lmingw32 -mwindows -lSDLmain -lSDL -lode
|
||||
TARGET := $(TARGET).exe
|
||||
SSNAME := dwscr.scr
|
||||
INSTALLDIR := C:\WINDOWS
|
||||
OBJS += displayinfo-win32.o
|
||||
else
|
||||
export CP := cp
|
||||
export MV := mv
|
||||
export CC := gcc
|
||||
export CXX := g++
|
||||
export AR := ar
|
||||
export CPPFLAGS += `sdl-config --cflags` `ode-config --cflags`
|
||||
LDFLAGS += `sdl-config --libs` `ode-config --libs` -lGL -lGLU
|
||||
OBJS += displayinfo.o
|
||||
endif
|
||||
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) -o $@ $(OBJS) $(LDFLAGS)
|
||||
|
||||
.PHONY: wfobj/WFObj.o
|
||||
wfobj/WFObj.o:
|
||||
$(MAKE) -C wfobj
|
||||
|
||||
.PHONY: LoadFile/LoadFile.o
|
||||
LoadFile/LoadFile.o:
|
||||
$(MAKE) -C LoadFile
|
||||
|
||||
.PHONY: ss/ss.a
|
||||
ss/ss.a:
|
||||
$(MAKE) -C ss
|
||||
|
||||
ifdef WIN32
|
||||
.PHONY: install
|
||||
install:
|
||||
$(CP) $(TARGET) $(INSTALLDIR)\$(SSNAME)
|
||||
endif
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(MAKE) -C wfobj clean
|
||||
$(MAKE) -C LoadFile clean
|
||||
$(MAKE) -C ss clean
|
||||
-$(RM) -f *~ *.o $(TARGET)
|
||||
Reference in new issue
Block a user