2016-10-02 08:36:39 +00:00
|
|
|
src = $(wildcard *.c)
|
|
|
|
obj = $(src:.c=.o)
|
|
|
|
|
|
|
|
override LIBS +=
|
2017-04-11 21:24:03 +00:00
|
|
|
override CFLAGS += -std=c99 -Os -Wall -Wextra -static
|
2016-10-02 08:36:39 +00:00
|
|
|
|
|
|
|
pause: $(obj)
|
2017-10-30 10:59:17 +00:00
|
|
|
$(CC) -o ../bin/$@ $^ $(CFLAGS) $(LIBS)
|
2016-10-02 08:36:39 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2017-10-30 10:59:17 +00:00
|
|
|
rm -f $(obj) ../bin/pause
|