CC = gcc -std=gnu99
LUSHFLAGS = -DNOLISP -DNO_DEBUG -Wall -O3 -march=nocona -mmmx -msse -pthread
X_CFLAGS = -I/usr/include/freetype2
X_LIBS = -lXft -lSM -lICE -lX11
LIBS = -lm -lc
DEFS = -DHAVE_CONFIG_H
MAIN = -DC_propogate=main
OBJS = lush_runtime.o check_func.o dsource_mnist2.o lenet5_fprop.o test_fprop.o
test: ${OBJS}
$(CC) -o test ${OBJS} ${LIBS}
.c.o:
${CC} ${MAIN} ${DEFS} ${X_CFLAGS} ${LUSHFLAGS} -c $<
And I have those 5 c source files in the folder. So I get a bunch of expected "undefined reference to" errors. Is there a way to just set a search path like I do for C++ code to find all of the code I need, I know where everything is including the headers I just dont know how to put it all together. Maybe this is confusing to others too but if anyone can give any suggestions it would be greatly appreciated. I just need this to work on

New Topic/Question
Reply




MultiQuote




|