summaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/makefile b/src/makefile
index bb501b5..9603d7d 100644
--- a/src/makefile
+++ b/src/makefile
@@ -4,7 +4,7 @@ TARGET := main
SPIRES_DIR := ../spires
SOURCES := main.c spires_interface.c crossbar_generator.c read_crossbar.c
-OBJECTS := $(SOURCES:.c=.o)
+OBJECTS := $(SOURCES:.c=.a)
PLPLOT_LIBS := $(shell pkg-config --libs plplot)
@@ -23,7 +23,7 @@ all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(TARGET)
-%.o: %.c
+%.a: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
run: $(TARGET)