changeset 4:3b02b3b26cfe

upload Makefile
author e085711
date Tue, 01 Mar 2011 04:46:45 +0900
parents e9211e83b79d
children 37dbaf9faf12
files returnCheck/Makefile returnCheck/Makefile~
diffstat 2 files changed, 11 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/returnCheck/Makefile	Tue Mar 01 04:38:41 2011 +0900
+++ b/returnCheck/Makefile	Tue Mar 01 04:46:45 2011 +0900
@@ -2,16 +2,24 @@
 # Makefile
 #
 
-program = return 
+program = return
 objs = return.o
+
+cbc_program =  return_cbc
+cbc_objs =  return_cbc.o
+
 #CC = gcc
 CC = ~/hg/CbC/build-CbC/INSTALL_DIR/bin/cbc-gcc
 CFLAGS = -O0 -g
 
+all: $(program) $(cbc_program)
 $(program): $(objs)
 	$(CC) -o $(program) $^
 $(objs): $(program).c
 	$(CC) $(CFLAGS) -c $<
-
+$(cbc_program): $(cbc_objs)
+	$(CC) -o $(cbc_program) $^
+$(cbc_objs): $(cbc_program).cbc
+	$(CC) $(CFLAGS) -c $<
 clean:
-	rm -rf $(program) $(objs)
\ No newline at end of file
+	rm -rf $(program) $(objs) $(cbc_program) $(cbc_objs)
\ No newline at end of file
--- a/returnCheck/Makefile~	Tue Mar 01 04:38:41 2011 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-# 
-# Makefile
-#
-
-program = return
-objs = return.o
-#CC = gcc
-CC = ~/hg/CbC/build-gcc/INSTALL_DIR/bin/gcc
-CFLAGS = -O0 -g
-
-$(program): $(objs)
-	$(CC) -o $(program) $^
-$(objs): $(program).c
-	$(CC) $(CFLAGS) -c $<
-
-clean:
-	rm -rf $(program) $(objs)
\ No newline at end of file