diff options
author | sternenseemann <sternenseemann@systemli.org> | 2020-08-08 13:01:21 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2020-08-08 13:01:21 +0200 |
commit | 36285a3d51322b33d83462233d4fcac08f89bfbb (patch) | |
tree | 0acaa899c1e5b10fba33b1a3d50c09a8b3595c22 /Makefile | |
parent | e5cd70a596f797ddff973861a5b72d2af1dec1b9 (diff) |
fix(Makefile): main.c is a requisite for main.o
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile index ce9daa6..50ee090 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) sternenblog.cgi: xml.o entry.o index.o cgiutil.o $(TEMPLATE).o main.o $(CC) $(CFLAGS) -o $@ $^ -main.o: core.h config.h - $(CC) $(CFLAGS) -c -o main.o main.c +main.o: main.c core.h config.h + $(CC) $(CFLAGS) -c -o main.o $< $(TEMPLATE).o: $(TEMPLATE).c core.h config.h xml.h cgiutil.h $(CC) $(CFLAGS) -I$(ROOT_DIR) -c -o $@ $< |