diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-14 19:00:49 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-14 19:00:49 -0600 |
commit | 737aaed25c2a29f00e53b5689ca07108e977cd84 (patch) | |
tree | 2bd162cc85815a2e9eda1ca88e8981078d23f346 /Makefile | |
parent | dfafb0735f09d65a392d03a2d1ad3d0b934981da (diff) | |
download | gcompat-737aaed25c2a29f00e53b5689ca07108e977cd84.tar.gz gcompat-737aaed25c2a29f00e53b5689ca07108e977cd84.tar.bz2 gcompat-737aaed25c2a29f00e53b5689ca07108e977cd84.tar.xz gcompat-737aaed25c2a29f00e53b5689ca07108e977cd84.zip |
Makefile: Update compilation options
* Remove -DPIC as it is unused (and PIC is always enabled).
* Export the loader name as a macro (this will be used in the future).
* Enable compiler warnings, except the expected ones.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -41,9 +41,10 @@ ${LOADER_NAME}: ${LOADER_OBJ} $(CC) -o ${LOADER_NAME} -fPIE -static ${LOADER_OBJ} .c.o: - $(CC) -std=c99 -D_BSD_SOURCE -fPIC -DPIC -DLINKER=\"${LINKER_PATH}\" \ - -DLIBGCOMPAT=\"${LIBGCOMPAT_PATH}\" ${CFLAGS} ${CPPFLAGS} \ - -c -o $@ $< + $(CC) -c -D_BSD_SOURCE -DLIBGCOMPAT=\"${LIBGCOMPAT_PATH}\" \ + -DLINKER=\"${LINKER_PATH}\" -DLOADER=\"${LOADER_NAME}\" \ + -fPIC -std=c99 -Wall -Wextra -Wno-frame-address \ + -Wno-unused-parameter ${CFLAGS} ${CPPFLAGS} -o $@ $< clean: rm -f libgcompat/*.o loader/*.o ${LIBGCOMPAT_NAME} ${LOADER_NAME} |