@@ -5,12 +5,10 @@ OBJ = src/main.o src/serial.o src/slip.o src/command.o src/render.o src/ini.o sr
5
5
DEPS = src/serial.h src/slip.h src/command.h src/render.h src/ini.h src/config.h src/input.h src/fx_cube.h src/audio.h src/ringbuffer.h src/inline_font.h src/SDL2_compat.h
6
6
7
7
# Any special libraries you are using in your project (e.g. -lbcm2835 -lrt `pkg-config --libs gtk+-3.0` ), or leave blank
8
- # INCLUDES = -L./lib -l:ld-linux-armhf.so.3 -l:libc.so.6 -l:libm.so.6 -l:libSDL2-2.0.so.0 -l:libvorbisfile.so.3 -l:libvorbis.so.0 -l:libogg.so.0 -l:libpng16.so.16 -l:libz.so.1 -l:libserialport.so
9
- INCLUDES = -L/root/workspace/libusb/libusb/.libs -L/root/workspace/m8c-sdl_1/deps/SDL_gfx-2.0.27/.libs -lSDL_gfx -lusb-1.0 -lSDL
8
+ INCLUDES = -L/root/workspace/m8c-rg35xx/deps/libusb/libusb/.libs -L/root/workspace/m8c-rg35xx/deps/SDL_gfx.libs -lSDL_gfx -lusb-1.0 -lSDL
10
9
11
10
# Set any compiler flags you want to use (e.g. -I/usr/include/somefolder `pkg-config --cflags gtk+-3.0` ), or leave blank
12
- # local_CFLAGS = -nolibc -D_REENTRANT -Wl,-rpath=lib/ -Wl,--dynamic-linker=lib/ld-linux-armhf.so.3 -Wall -O2 -pipe -I. -I/opt/rg35xx/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/local/include/SDL2 -I/opt/rg35xx/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/local/include/directfb -I/opt/rg35xx/bin/../arm-buildroot-linux-gnueabihf/sysroot/usr/local/include -DDEBUG_MSG=1
13
- local_CFLAGS = -Wall -O2 -pipe -I. -I/root/workspace/libusb/libusb/ -I/root/workspace/m8c-sdl_1/deps/SDL_gfx-2.0.27 $(shell pkg-config --cflags sdl) -DUSE_LIBUSB=1 -DDEBUG_MSG=1
11
+ local_CFLAGS = -Wall -O2 -pipe -I. -I/root/workspace/m8c-rg35xx/deps/libusb/libusb/ -I/root/workspace/m8c-rg35xx/deps/SDL_gfx $(shell pkg-config --cflags sdl) -DUSE_LIBUSB=1 -DDEBUG_MSG=1
14
12
15
13
# Set the compiler you are using ( gcc for C or g++ for C++ )
16
14
# CC = arm-buildroot-linux-gnueabihf-gcc
@@ -30,21 +28,8 @@ SOURCE_DIR = src/
30
28
m8c : $(OBJ )
31
29
$(CC ) -o $@ $^ $(local_CFLAGS ) $(INCLUDES )
32
30
33
- libusb : INCLUDES = $(shell pkg-config --libs sdl libusb-1.0)
34
- libusb : local_CFLAGS = $(CFLAGS ) $(shell pkg-config --cflags sdl libusb-1.0) -Wall -O2 -pipe -I. -DUSE_LIBUSB=1
35
- libusb : m8c
36
-
37
31
# Cleanup
38
32
.PHONY : clean
39
33
40
34
clean :
41
- rm -f src/* .o * ~ m8c
42
-
43
- # PREFIX is environment variable, but if it is not set, then set default value
44
- ifeq ($(PREFIX ) ,)
45
- PREFIX := /usr/local
46
- endif
47
-
48
- install : m8c
49
- install -d $(DESTDIR )$(PREFIX ) /bin/
50
- install -m 755 m8c $(DESTDIR )$(PREFIX ) /bin/
35
+ rm -f src/* .o * ~ m8c
0 commit comments