diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index aa2696c..0000000 --- a/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -ECHO = /bin/echo -e -SHELL = /bin/sh -RM = /bin/rm -f -CC = gcc -STRIP = strip - -GIT_VERSION := $(shell git --no-pager describe --tags --dirty |sed 's/\([^-]*-g\)/r\1/;s/-/./g') - -CFLAGS = -g -Os -std=c11 -I./include -Wall -Wstrict-prototypes -Wconversion -CFLAGS += -DVERSION=\"$(GIT_VERSION)\" -CFLAGS += -Wmissing-prototypes -Wshadow -Wextra -Wunused -LDFLAGS = -lusb-1.0 - -PROGS = lan7800-led-ctl - -all: $(PROGS) - -clean: - $(RM) src/*.o -tidy: - $(RM) src/*.o $(PROGS) - -install: $(PROGS) - @$(ECHO) "\t==> Installing programs to $(DESTDIR)/bin" - @install -m 0755 -d $(DESTDIR)/bin - @install -m 0755 -t $(DESTDIR)/bin $(PROGS) - -# Generic instructions -src/%.o: src/%.c - @$(ECHO) "\t--> Compiling `basename $<`" - @$(CC) $(CFLAGS) -c $< -o $@ - -# Specific programs -lan7800-led-ctl: src/lan7800-led-ctl.o - @$(ECHO) "\t==> Linking objects to output file $@ $(GIT_VERSION)\n" - @$(CC) $(CFLAGS) $(LDFLAGS) $+ -o $@ - @$(STRIP) $@ |