mirror of
https://git.zaage.it/robert/balong-flash
synced 2024-11-18 09:28:23 +00:00
18 lines
400 B
Makefile
Executable File
18 lines
400 B
Makefile
Executable File
CC = gcc
|
|
LIBS = -lz
|
|
#BUILDNO = `cat build`
|
|
BUILDNO=$(shell cat build)
|
|
CFLAGS = -O2 -Wunused -Wno-unused-result -D BUILDNO=$(BUILDNO) $(LIBS)
|
|
.PHONY: all clean
|
|
|
|
all: balong_flash
|
|
|
|
clean:
|
|
rm *.o
|
|
rm balong_flash
|
|
|
|
balong_flash: balong_flash.o hdlcio_linux.o ptable.o flasher.o util.o signver.o
|
|
@gcc $^ -o $@ $(LIBS)
|
|
@echo Current buid: $(BUILDNO)
|
|
@echo $$((`cat build`+1)) >build
|
|
|