Changeset 21545 for trunk/testapp


Ignore:
Timestamp:
Jan 7, 2011, 1:36:22 PM (15 years ago)
Author:
dmik
Message:

testapp: common.mak: Added source- and target-specific CFLAGS support (CFLAGS.<src|tgt>) and a generic implicit .exe rule to let build it from an arbitrary set of sources explicitly specified through dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testapp/common.mak

    r21533 r21545  
    3535       
    3636%.exe: %.c
    37         gcc $^ -Zomf -Zmap -Zlinker /PM:VIO -o $@ $(CFLAGS)
     37        gcc $^ -Zomf -Zmap -Zlinker /PM:VIO -o $@ $(CFLAGS) $(foreach src, $^, $(CFLAGS.$(src))) $(CFLAGS.$@)
    3838
     39%.exe:
     40        gcc $^ -Zomf -Zmap -Zlinker /PM:VIO -o $@ $(CFLAGS) $(foreach src, $^, $(CFLAGS.$(src))) $(CFLAGS.$@)
     41       
    3942%.s: %.c
    4043        gcc $< -S -Zomf -o $@ $(CFLAGS)
Note: See TracChangeset for help on using the changeset viewer.