Go to Post Uhh... we were supposed to be building a robot? *looks at giant wooden Trojan Rabbit in the corner that was built instead for the past 6 weeks* Whoops... - Adam Richards [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIY drive belt dpeterson3 Technical Discussion 10 01-09-2009 20:38
MIT/FIRST DIY Segway chris31 General Forum 10 26-08-2007 21:41
DIY open exhaust Mike Chit-Chat 3 06-06-2007 22:57
DIY water cooling Morenoh149 Chit-Chat 2 28-02-2006 23:44
DIY Active Noise Cancellation phrontist Technical Discussion 20 28-08-2004 07:45


All times are GMT -5. The time now is 05:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi