Clock written in about 5 minutes. Public Domain.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
296B

  1. #!/bin/make -f
  2. CFLAGS := -std=c99 -Os -s -Wall -Wextra -Wpedantic
  3. CPPFLAGS :=
  4. INSTALL := /usr/local
  5. PROGN := clock
  6. $(PROGN): clock.c
  7. $(CC) $(CFLAGS) -pipe -o $@ $<
  8. gzexe $@
  9. clean:
  10. -rm $(PROGN) $(PROGN)~
  11. install: $(PROGN)
  12. install -m 755 $< $(INSTALL)/bin/
  13. .PHONY: clean install all