diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-03 14:46:21 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:39 -0500 |
commit | cec1586f697116fb683b8b578e4c0eba0d1bd5fb (patch) | |
tree | fee2782d1652d2c4610432fd31a666173de77737 /rules.mak | |
parent | 5377ca874931a03c2c9169cab5b980e5152ab168 (diff) | |
download | qemu-cec1586f697116fb683b8b578e4c0eba0d1bd5fb.tar.gz qemu-cec1586f697116fb683b8b578e4c0eba0d1bd5fb.tar.bz2 qemu-cec1586f697116fb683b8b578e4c0eba0d1bd5fb.zip |
Rename CPPFLAGS to QEMU_CFLAGS
Now we have to variables: QEMU_CFLAGS: flags without which we can't compile
CFLAGS: "-g -O2"
We can now run:
make CFLAGS="-fbar" foo.o
make CFLAGS="" foo.o
make CFLAGS="-O3" foo.o
And it all should work.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
Diffstat (limited to 'rules.mak')
-rw-r--r-- | rules.mak | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,12 +1,12 @@ %.o: %.c - $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," CC $(TARGET_DIR)$@") %.o: %.S - $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CLAGS) -c -o $@ $<," AS $(TARGET_DIR)$@") %.o: %.m - $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") + $(call quiet-command,$(CC) $(QEMU_CFLAGS) $(CFLAGS) -c -o $@ $<," OBJC $(TARGET_DIR)$@") LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(1) $(ARLIBS_BEGIN) $(ARLIBS) $(ARLIBS_END) $(LIBS)," LINK $(TARGET_DIR)$@") |