Hello faithfull list,
I have a question reguarding writing externals.
Ive never really built anything Ive written myself in linux sence my CSCI classes in college, can someone remind me as to how to build in the linux environment?
Heres my makefile
-----------------------------------------------------
LDFLAGS = -Wl,-export-dynamic -lasound -lrt -ljack
LIB = -ldl -lm -lpthread -lasound
INCLUDE = -I/usr/local/include
BIN_DIR = ../general
EXT= pd_linux
sphere: $(CC) $(LDFLAGS) $(INCLUDE) -o $(BIN_DIR)/sphere~.$(EXT) sphere~.c
fft-bin: $(CC) $(LDFLAGS) $(INCLUDE) -o $(BIN_DIR)/fft-bin~.$(EXT) fft-bin~.
-----------------------------------------------------
but the compiler isint finding my m_pd.h I think, as I get:
gcc -Wl,-export-dynamic -lasound -lrt -ljack -I/usr/local/include -o ../general/fft-bin~.pd_linux fft-bin~.c
/usr/lib/gcc-lib/i386-redhat-linux/3.3.3/../../../crt1.o(.text+0x18): In function `_start\':
: undefined reference to `main\'
/tmp/ccAyKAvm.o(.text+0xf): In function `fftbin_tilde_new\':
: undefined reference to `gensym\'
etc...
Also, how would I put both of these into one .pd_linux external through linking? Just provide two .c files to be compiled instead of one?
THanks for the help!
-thewade