View Single Post
  #1   Spotlight this post!  
Unread 15-05-2010, 10:10
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: DIY Static Library

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
__________________

JabbaScript
Reply With Quote