TIP

makefile

tomato13 2007. 5. 22. 14:43

http://cafe.naver.com/lee19856.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=128

 

http://blog.daum.net/crazy29/?_top_blogtop=go2myblog

 

unix-> makefile

 

ex)

CC=C:/ADSv1_2/bin/tcc
#CC=C:/cygwin/bin/gcc

NativeUI_Test: ruby.o adapter.o NativeUI_Test.o
 $(CC) -o NativeUI_Test ruby.o adapter.o NativeUI_Test.o

test:
 $(CC) -o test test.c
 
ruby.o: insert.h \
   adapter.h \
   ruby.h \
   adapter.c
 $(CC) -c ruby.c
 
adapter.o: insert.h \
   adapter.h \
   ruby.h \
   ruby.c
 $(CC) -c adapter.c

NativeUI_Test.o : insert.h \
   adapter.h \
   ruby.h \
   ruby.c \
   adapter.c
 $(CC) -c NativeUI_Test.c
   
 
clean:
 rm -f NativeUI_Test NativeUI_Test.o ruby.o adapter.o test