Add example to SDL

git-svn-id: svn://kolibrios.org@8214 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
maxcodehack 2020-11-17 19:13:17 +00:00
parent 6d6e328b43
commit cb127af786
3 changed files with 6 additions and 5 deletions

View File

@ -7,12 +7,12 @@ CFLAGS = -c -fno-ident -O2 -fomit-frame-pointer -fno-ident -U__WIN32__ -U_Win32
INCLUDES = -I ../include -I $(SDK_DIR)/sources/newlib/libc/include INCLUDES = -I ../include -I $(SDK_DIR)/sources/newlib/libc/include
FITZ_SRC := $(notdir $(wildcard *.c)) SYSCALL_SRC := $(notdir $(wildcard *.c))
OBJECTS = $(patsubst %.c, %.o, $(FITZ_SRC)) OBJECTS = $(patsubst %.c, %.o, $(SYSCALL_SRC))
default: $(patsubst %.c,%.o,$(FITZ_SRC)) default: $(patsubst %.c,%.o,$(SYSCALL_SRC))
%.o : %.c Makefile $(FITZ_SRC) %.o : %.c Makefile $(SYSCALL_SRC)
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $< $(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
clean: clean:

View File

@ -26,4 +26,4 @@
/* Stub until we implement threads on this platform */ /* Stub until we implement threads on this platform */
typedef int SYS_ThreadHandle; typedef int SYS_ThreadHandle;
#define DISABLE_THREADS //#define DISABLE_THREADS

View File

@ -29,6 +29,7 @@
#include <math.h> #include <math.h>
#endif #endif
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include "SDL_error.h" #include "SDL_error.h"
#include "SDL_sysvideo.h" #include "SDL_sysvideo.h"