1
0
mirror of https://github.com/taigrr/tplinkController synced 2025-01-18 04:43:13 -08:00
tplinkController/Makefile
Jason Benaim 0f1f472cf0 Revert "Makefile: change C standard to Gnu99 from C99. This fixes issue #2."
Didn't fix the problem on all systems, so reverting...
2019-07-19 12:45:23 -07:00

18 lines
244 B
Makefile

target ?= hs100
objects := $(patsubst %.c,%.o,$(wildcard *.c))
LDFLAGS=-lm
CFLAGS=-std=c99 -Os
ifdef DEBUG
CFLAGS+=-Wall -Werror -ggdb
endif
.PHONY: all
all: $(target)
.PHONY: clean
clean:
rm -f $(target) $(objects)
$(target): $(objects)