summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 19:00:49 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-14 19:00:49 -0600
commit737aaed25c2a29f00e53b5689ca07108e977cd84 (patch)
tree2bd162cc85815a2e9eda1ca88e8981078d23f346 /Makefile
parentdfafb0735f09d65a392d03a2d1ad3d0b934981da (diff)
downloadgcompat-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--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b941dcf..887a7cf 100644
--- a/Makefile
+++ b/Makefile
@@ -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}