Browse Source

Add linker flag for math library; add header file to dependencies

master
T. Meissner 6 years ago
parent
commit
85c06130ed
4 changed files with 6 additions and 6 deletions
  1. +1
    -1
      chapter_07/Makefile
  2. +1
    -1
      chapter_08/Makefile
  3. +2
    -2
      chapter_09/Makefile
  4. +2
    -2
      chapter_10/Makefile

+ 1
- 1
chapter_07/Makefile View File

@ -5,7 +5,7 @@ all: lispy
%: %.c
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -o $@
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -lm -o $@
.PHONY: clean


+ 1
- 1
chapter_08/Makefile View File

@ -5,7 +5,7 @@ all: lispy
%: %.c
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -o $@
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -lm -o $@
.PHONY: clean


+ 2
- 2
chapter_09/Makefile View File

@ -4,8 +4,8 @@ MPC_DIR := ../mpc
all: lispy
%: %.c
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -o $@
%: %.c %.h
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -lm-o $@
.PHONY: clean


+ 2
- 2
chapter_10/Makefile View File

@ -4,8 +4,8 @@ MPC_DIR := ../mpc
all: lispy
%: %.c
cc -std=c11 -Wall $@.c ${MPC_DIR}/mpc.c -ledit -o $@
%: %.c %.h
cc -std=c11 -Wall -Wextra $@.c ${MPC_DIR}/mpc.c -ledit -lm -o $@
.PHONY: clean


Loading…
Cancel
Save