Enable automated build and install runs on FreeBSD for ODE.
ODE does not build on FreeBSD out of the box, so an automated patchfile is included as well. The 'clean' target reverses the patches that were done by 'all'.
This commit is contained in:
22
extern/ode/patchfile.FreeBSD
vendored
Normal file
22
extern/ode/patchfile.FreeBSD
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
--- dist/Makefile.org Sat Jan 11 23:55:46 2003
|
||||
+++ dist/Makefile Sat Jan 11 23:55:36 2003
|
||||
@@ -242,14 +242,16 @@
|
||||
clean:
|
||||
-$(DEL_CMD) $(ODE_OBJECTS) $(ODE_TEST_EXE) $(ODE_LIB) $(DRAWSTUFF_OBJECTS) $(DRAWSTUFF_TEST_EXE) $(DRAWSTUFF_LIB) ode/test/*$(OBJ) drawstuff/dstest/*$(OBJ) $(CONFIGURATOR_EXE) $(CONFIG_H)
|
||||
|
||||
+# Patched for FreeBSD
|
||||
+
|
||||
%$(OBJ): %.c
|
||||
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
|
||||
+ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) -I/usr/X11R6/include $(DEFINES) $(C_OPT)1 $(C_OUT)$@ $<
|
||||
|
||||
%$(OBJ): %.cpp
|
||||
- $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
|
||||
+ $(CC) $(C_FLAGS) $(C_INC)$(INCPATH) -I/usr/X11R6/include $(DEFINES) $(C_OPT)$(OPT) $(C_OUT)$@ $<
|
||||
|
||||
%.exe: %$(OBJ)
|
||||
- $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH)
|
||||
+ $(CC) $(C_EXEOUT)$@ $< $(ODE_LIB) $(DRAWSTUFF_LIB) $(RESOURCE_FILE) $(LINK_OPENGL) $(LINK_MATH) -lXext
|
||||
|
||||
# windows specific rules
|
||||
|
Reference in New Issue
Block a user