mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-26 06:25:20 +00:00
20 lines
356 B
Makefile
20 lines
356 B
Makefile
# Makefile
|
|
|
|
CC = gcc
|
|
CFLAGS = -O3
|
|
LIBS = -lm
|
|
LFLAGS = -L.
|
|
IFLAGS = -I../../../addins/SoftFloat-3e/source/include/
|
|
LIBS = ../../../addins/SoftFloat-3e/build/Linux-x86_64-GCC/softfloat.a
|
|
SRCS = $(wildcard *.c)
|
|
|
|
PROGS = $(patsubst %.c,%,$(SRCS))
|
|
|
|
all: $(PROGS)
|
|
|
|
%: %.c
|
|
$(CC) $(CFLAGS) $(IFLAGS) $(LFLAGS) -o $@ $< $(LIBS)
|
|
|
|
clean:
|
|
rm -f $(PROGS)
|