mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
19 lines
284 B
Makefile
19 lines
284 B
Makefile
CFLAGS=-O2 -Wall -g -I../kernel -MMD
|
|
LDFLAGS=-g
|
|
CC=gcc
|
|
AR=ar
|
|
|
|
PROGS=litepcie_util
|
|
|
|
all: $(PROGS)
|
|
|
|
litepcie_util: litepcie_util.o litepcie_lib.o
|
|
$(CC) $(LDFLAGS) -o $@ $^ -lrt -lm
|
|
|
|
clean:
|
|
rm -f $(PROGS) *.o *.a *.d *~
|
|
|
|
%.o: %.c
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
-include $(wildcard *.d)
|