Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ VPATH += ${SIMAVR_R}/examples/parts
VPATH += ${SIMAVR_R}/examples/shared

# requires libfreetype6-dev
FTC = ${shell PATH="$(PATH):/usr/X11/bin" which freetype-config}
#FTC = ${shell PATH="$(PATH):/usr/X11/bin" which freetype-config}
FTC = pkg-config freetype2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change fixed my build 👍 Thank you


# for the Open Motion Controller board
CPPFLAGS := -DMOTHERBOARD=91
Expand Down Expand Up @@ -80,11 +81,14 @@ build-libc3:
$(MAKE) -C $(LIBC3) CC="$(CC)" CFLAGS="$(CFLAGS)"
build-ftgl:
$(MAKE) -C $(FTGL) CC="$(CC)" CPPFLAGS="$(CPPFLAGS)" \
CFLAGS="$(CFLAGS)" lib
CFLAGS="$(CFLAGS)" freetype-gl

${target}: build-simavr build-libc3 build-ftgl ${board}
${target}: obj_dir build-simavr build-libc3 build-ftgl ${board}
@echo $@ done

obj_dir:
mkdir -p ${OBJ}

clean: clean-${OBJ}
rm -rf *.a *.axf ${target} *.vcd
$(MAKE) -C $(LIBC3) CC="$(CC)" CFLAGS="$(CFLAGS)" clean
Expand Down