blob: 39dc4bb9e83fac2fdc0a56d89da8ec1c560a197f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
include ../config.mk
PREFIX ?= /usr/local
INSTALL ?= install
CPPFLAGS += -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE
CFLAGS += -W -Wall -O2 -pedantic -std=c99
LIBS += -lm -lusb
OBJS = main.o nolo.o printf-utils.o image.o fiasco.o device.o usb-device.o cold-flash.o operations.o local.o mkii.o disk.o cal.o
BIN = 0xFFFF
all: $(BIN)
$(BIN): $(OBJS) Makefile ../config.mk
$(CC) $(CFLAGS) $(LDFLAGS) -o $(BIN) $(OBJS) $(LIBS)
%.o: %.c Makefile ../config.mk
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
install: $(BIN)
$(INSTALL) -D -m 755 $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/bin/$(BIN)
clean:
-$(RM) $(OBJS) $(BIN)
|