summaryrefslogtreecommitdiffstats
path: root/external/xscom-utils/Makefile
blob: f944ff3a88ceb70ae161e034129aacccd6ce78fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: getscom putscom getsram

XSCOM_VERSION ?= $(shell ../../make_version.sh xscom-utils)
CFLAGS?=-O2 -g -Wall -m64
override CFLAGS += -DVERSION=\"$(XSCOM_VERSION)\"

getscom: getscom.c xscom.c
	$(CC) $(CFLAGS) -o $@ $^

getsram: getsram.c xscom.c sram.c
	$(CC) $(CFLAGS) -o $@ $^

putscom: putscom.c xscom.c
	$(CC) $(CFLAGS) -o $@ $^

.PHONY: clean
clean:
	rm -rf getscom putscom getsram

.PHONY: distclean
distclean: clean
	rm -rf *.c~ *.h~ *.i *.s Makefile~

OpenPOWER on IntegriCloud