* Link against SDL.
#pragma once\r
#endif // _MSC_VER > 1000\r
\r
-/* HACK to make things compile */\r
-#define GetTickCount() 0\r
-\r
#include "engine.h"\r
\r
class CGlobalTimer : public ITask\r
\r
#define MAX_PROFILER_SAMPLES 50\r
\r
-/* HACK to make things compile */\r
-#define GetTickCount() 0\r
\r
class IProfilerOutputHandler;\r
class CProfileSample;\r
-CFLAGS:=-I.
+CFLAGS := -I. -DWITH_SDL
+LDFLAGS := -lSDL
OBJS:=main.o Engine/Log.o SchemeReader.o Engine/Settings.o Engine/mmanager.o Engine/Kernel.o Engine/ProfileLogHandler.o Engine/VideoUpdate.o Engine/GlobalTimer.o Engine/SoundTask.o Engine/profiler.o Playground.o Engine/InputTask.o
all: abm2
abm2: $(OBJS)
- g++ -o abm2 $(OBJS)
+ g++ $(LDFLAGS) -o abm2 $(OBJS)
%.o: %.cpp
g++ $(CFLAGS) -c $< -o $@
+#if !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)
+#define AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_
+
#ifndef WIN32
#define vsprintf_s vsnprintf
#define sprintf_s snprintf
#define BYTE unsigned char
#define DWORD unsigned int
#endif // !WIN32
+
+#ifdef WITH_SDL
+ #include <SDL/SDL.h>
+ #define GetTickCount SDL_GetTicks
+#endif // WITH_SDL
+
+#endif // !defined(AFX_PORTING_H__90C3FE42_3400_4978_8BC5_7D905F3C8E63__INCLUDED_)