[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Multilib sources and variables
From: |
NightStrike |
Subject: |
Multilib sources and variables |
Date: |
Sat, 29 Nov 2008 19:52:23 -0500 |
Is the following kosher?
shell32src=libsrc/shell32.c
lib32_LIBRARIES += lib32/libshell32.a
lib32_libshell32_a_SOURCES = $shell32src
lib32_libshell32_a_CPPFLAGS = -m32
lib64_LIBRARIES += lib64/libshell32.a
lib64_libshell32_a_SOURCES = $shell32src
Basically, all the sources are the same, so I don't want to list them
twice (and subsequently maintain two lists and forget to keep updating
the two lists.) The only difference is adding the -m32 flag (which
I'm hoping is correctly placed in CPPFLAGS, and not CFLAGS... I never
remember which flags go where).
So is it ok to do the variable thing?