* NightStrike wrote on Sun, Nov 30, 2008 at 01:52:23AM CET: > Is the following kosher?
Yes, except that you need to use $(shell32src) instead of $shell32src in both places. > 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). Typically, -m32 either goes right on to the compiler, or it goes in both CPPFLAGS and LDFLAGS. Since you don't link here, that looks ok. Cheers, Ralf