File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ RUST_TARGET_DIR?=../../target
55RUST_SRC_DIR? =../../c
66RUSTFLAGS? =
77
8- CFLAGS? =-Wall -g -I../../c/build/include
9- LIBS? =-lpathfinder_c -lglfw
8+ CFLAGS? =-Wall -g $( shell pkg-config --cflags pathfinder_c glfw3)
9+ LIBS? =$( shell pkg-config --libs pathfinder_c glfw3)
1010MKDIR? =mkdir -p
1111RM? =rm
1212CARGO? =cargo
Original file line number Diff line number Diff line change 99// except according to those terms.
1010
1111#include <GLFW/glfw3.h>
12- #include <pathfinder/pathfinder .h>
12+ #include <pathfinder_c .h>
1313#include <stdarg.h>
1414#include <stdbool.h>
1515#include <stdio.h>
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ RUST_TARGET_DIR?=../../target
55RUST_SRC_DIR? =../../c
66RUSTFLAGS? =-C target-cpu=native
77
8- CFLAGS? =-Wall -g -I../../c/build/include
9- LIBS? =-lpathfinder_c
8+ CFLAGS? =-Wall -g $( shell pkg-config --cflags pathfinder_c sdl2)
9+ LIBS? =$( shell pkg-config --libs pathfinder_c sdl2)
1010MKDIR? =mkdir -p
1111RM? =rm
1212CARGO? =cargo
@@ -35,10 +35,10 @@ all: $(TARGET_DIR)/c_canvas_minimal
3535.PHONY : clean rustlib
3636
3737$(TARGET_DIR ) /c_canvas_minimal : $(OBJ_DIR ) /c_canvas_minimal.o rustlib
38- $(MKDIR ) $(TARGET_DIR ) && $(CC ) $(LDFLAGS ) $(LIBS ) ` sdl2-config --libs ` -o $@ $<
38+ $(MKDIR ) $(TARGET_DIR ) && $(CC ) $(LDFLAGS ) $(LIBS ) -o $@ $<
3939
4040$(OBJ_DIR ) /% .o : $(SRC_DIR ) /% .c
41- $(MKDIR ) $(OBJ_DIR ) && $(CC ) -c $(CFLAGS ) ` sdl2-config --cflags ` -o $@ $<
41+ $(MKDIR ) $(OBJ_DIR ) && $(CC ) -c $(CFLAGS ) -o $@ $<
4242
4343rustlib :
4444 cd $(RUST_SRC_DIR ) && RUSTFLAGS=" $( RUSTFLAGS) " $(CARGO ) build $(CARGOFLAGS )
Original file line number Diff line number Diff line change 1010
1111#include <SDL2/SDL.h>
1212#include <SDL2/SDL_opengl.h>
13- #include <pathfinder/pathfinder .h>
13+ #include <pathfinder_c .h>
1414#include <stdarg.h>
1515#include <stdbool.h>
1616#include <stdio.h>
You can’t perform that action at this time.
0 commit comments