1 |
#! /usr/bin/ruby -w |
#! /usr/bin/ruby -w |
2 |
# |
# |
3 |
# Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org> |
# Copyright (C) 2002,2003 Yoshinori K. Okuji <okuji@enbug.org> |
4 |
# |
# |
5 |
# This genmk.rb is free software; the author |
# This genmk.rb is free software; the author |
6 |
# gives unlimited permission to copy and/or distribute it, |
# gives unlimited permission to copy and/or distribute it, |
60 |
$(OBJCOPY) -O binary -R .note -R .comment $< $@ |
$(OBJCOPY) -O binary -R .note -R .comment $< $@ |
61 |
|
|
62 |
#{exe}: #{objs_str} |
#{exe}: #{objs_str} |
63 |
$(CC) $(LDFLAGS) $(#{prefix}_LDFLAGS) -o $@ $^ |
$(CC) -o $@ $^ $(LDFLAGS) $(#{prefix}_LDFLAGS) |
64 |
|
|
65 |
" + objs.collect_with_index do |obj, i| |
" + objs.collect_with_index do |obj, i| |
66 |
src = sources[i] |
src = sources[i] |
181 |
MOSTLYCLEANFILES += #{deps_str} |
MOSTLYCLEANFILES += #{deps_str} |
182 |
|
|
183 |
#{@name}: #{objs_str} |
#{@name}: #{objs_str} |
184 |
$(BUILD_CC) $(BUILD_LDFLAGS) $(#{prefix}_LDFLAGS) -o $@ $^ |
$(BUILD_CC) -o $@ $^ $(BUILD_LDFLAGS) $(#{prefix}_LDFLAGS) |
185 |
|
|
186 |
" + objs.collect_with_index do |obj, i| |
" + objs.collect_with_index do |obj, i| |
187 |
src = sources[i] |
src = sources[i] |