| 1 | # see License.txt for copyright and terms of use |
| 2 | |
| 3 | CC := gcc |
| 4 | CFLAGS := -Wall |
| 5 | # CFLAGS += -g |
| 6 | FLEX := flex |
| 7 | |
| 8 | .SUFFIXES: |
| 9 | .PHONY: all clean distbuild distclean |
| 10 | |
| 11 | # **** for distribution client use |
| 12 | |
| 13 | all: topformflat |
| 14 | |
| 15 | topformflat: %: %.c |
| 16 | $(CC) $(CFLAGS) -o $@ $< |
| 17 | |
| 18 | clean: |
| 19 | rm -f topformflat |
| 20 | |
| 21 | # **** for building the distribution |
| 22 | |
| 23 | distbuild: topformflat.c |
| 24 | |
| 25 | distclean: clean |
| 26 | rm -f topformflat.c |
| 27 | |
| 28 | topformflat.c: %.c: %.lex |
| 29 | $(FLEX) -o$@ $< |