19 lines
296 B
Makefile
19 lines
296 B
Makefile
#!/bin/make -f
|
|
|
|
CFLAGS := -std=c99 -Os -s -Wall -Wextra -Wpedantic
|
|
CPPFLAGS :=
|
|
INSTALL := /usr/local
|
|
PROGN := clock
|
|
|
|
$(PROGN): clock.c
|
|
$(CC) $(CFLAGS) -pipe -o $@ $<
|
|
gzexe $@
|
|
|
|
clean:
|
|
-rm $(PROGN) $(PROGN)~
|
|
|
|
install: $(PROGN)
|
|
install -m 755 $< $(INSTALL)/bin/
|
|
|
|
.PHONY: clean install all
|