Small fixes to support a Debian/GNU Linux distro. Hopefully Ubuntu too.

This commit is contained in:
Miguel Lechón 2014-11-09 12:07:03 +01:00
parent 45b214d83e
commit db2ad9648d
3 changed files with 27 additions and 3 deletions

View file

@ -24,7 +24,7 @@
#**************************************************************************************************
# define raylib platform (by default, compile for RPI)
# Other possible platform: PLATFORM_DESKTOP
# Other possible platforms: PLATFORM_DESKTOP PLATFORM_LINUX_DESKTOP
PLATFORM ?= PLATFORM_RPI
# define raylib graphics api depending on selected platform
@ -119,8 +119,13 @@ stb_vorbis.o: stb_vorbis.c
clean:
ifeq ($(PLATFORM),PLATFORM_RPI)
rm -f *.o libraylib.a
else
ifeq ($(PLATFORM),PLATFORM_LINUX_DESKTOP)
find . -type f -executable -delete
rm -f *.o libraylib.a
else
del *.o libraylib.a
endif
endif
@echo Cleaning done

View file

@ -28,6 +28,9 @@
#include "stb_vorbis.h"
#ifdef __linux
#include <alloca.h>
#endif
#ifndef STB_VORBIS_HEADER_ONLY