Skip to content

Commit fc4aa41

Browse files
committed
Fix bug in Makefile
1 parent 944ff16 commit fc4aa41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ $(EXPORT_HEADER):
5151
@echo "#define ZONE_EXPORT" > include/zone/export.h
5252

5353
$(OBJECTS): $(SOURCES) $(SOURCES:.c=.d)
54-
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
54+
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -o $@ -c $(@:.o=.c)
5555

5656
$(WESTMERE_OBJECTS): $(WESTMERE_SOURCES) $(WESTMERE_SOURCES:.c=.d)
57-
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=westmere -o $@ -c $<
57+
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=westmere -o $@ -c $(@:.o=.c)
5858

5959
$(HASWELL_OBJECTS): $(HASWELL_SOURCES) $(HASWELL_SOURCES:.c=.d)
60-
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=haswell -o $@ -c $<
60+
$(CC) $(DEPFLAGS) $(CPPFLAGS) $(CFLAGS) -march=haswell -o $@ -c $(@:.o=.c)
6161

6262
DEPENDS := $(SOURCES:.c=.d) \
6363
$($(WESTMERE)_SOURCES:.c=.d) \

0 commit comments

Comments
 (0)