Cool thanks!
Quote:
|
Originally Posted by taichichuan
# source files.
SRC = CANJaguar.cpp
OBJ = $(SRC:.cpp=.o)
OUT = CANJaguarLib.a
# include directories
INCLUDES = -I. -I$(WIND_BASE)/target/h -IC:/Team_116_2010/Jaguar -IC:/windriver/
vxworks-6.3/target/h/WPIlib
# C++ compiler flags (-g -O2 -Wall)
CCFLAGS = -g
# compiler
CCC = ccppc
# library paths
LIBS = -LC:/Team_116_2010/lib -lm
# compile flags
LDFLAGS = -g
.SUFFIXES: .cpp
default: dep $(OUT)
.cpp.o:
$(CCC) $(INCLUDES) $(CCFLAGS) -c $< -o $@
$(OUT): $(OBJ)
arppc rcs $(OUT) $(OBJ)
depend: dep
dep:
clean:
rm -f $(OBJ) $(OUT) Makefile.bak
|
Do you use Windows or Linux? I found out that Makefiles are different on different operating systems...
THANKS!!!
-Masoug