Mercurial > hg > Members > nobuyasu > test
diff returnCheck/Makefile @ 4:3b02b3b26cfe
upload Makefile
author | e085711 |
---|---|
date | Tue, 01 Mar 2011 04:46:45 +0900 |
parents | e9211e83b79d |
children |
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