Skip to content

Commit 24830cc

Browse files
committed
- Fix makefile dependencies.
1 parent a7fbd5a commit 24830cc

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Added
1111

1212
- Initial release.
13+
14+
### Fixed
15+
16+
- Fix makefile dependencies.

Makefile.in

+8-3
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,23 @@ $(EXPORT_HEADER):
5252
@mkdir -p include/zone
5353
@echo "#define ZONE_EXPORT" > include/zone/export.h
5454

55-
$(OBJECTS): $(SOURCES) $(SOURCES:.c=.d)
55+
$(OBJECTS):
5656
@mkdir -p src/fallback
5757
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ -c $(srcdir)/$(@:.o=.c)
5858

59-
$(WESTMERE_OBJECTS): $(WESTMERE_SOURCES) $(WESTMERE_SOURCES:.c=.d)
59+
$(WESTMERE_OBJECTS):
6060
@mkdir -p src/westmere
6161
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=westmere -o $@ -c $(srcdir)/$(@:.o=.c)
6262

63-
$(HASWELL_OBJECTS): $(HASWELL_SOURCES) $(HASWELL_SOURCES:.c=.d)
63+
$(HASWELL_OBJECTS):
6464
@mkdir -p src/haswell
6565
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=haswell -o $@ -c $(srcdir)/$(@:.o=.c)
6666

67+
src/zone.o: $(srcdir)/src/zone.c src/zone.d
68+
src/fallback/parser.o: $(srcdir)/src/fallback/parser.c src/fallback/parser.d
69+
src/westmere/parser.o: $(srcdir)/src/westmere/parser.c src/westmere/parser.d
70+
src/haswell/parser.o: $(srcdir)/src/haswell/parser.c src/haswell/parser.d
71+
6772
DEPENDS := $(SOURCES:.c=.d) \
6873
$($(WESTMERE)_SOURCES:.c=.d) \
6974
$($(HASWELL)_SOURCES:.c=.d)

0 commit comments

Comments
 (0)