File: Build.mk

package info (click to toggle)
delta 2006.08.03-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 244 kB
  • ctags: 227
  • sloc: perl: 502; makefile: 96; sh: 35; ansic: 11
file content (29 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# see License.txt for copyright and terms of use

CC := gcc
CFLAGS := -Wall
# CFLAGS += -g
FLEX := flex

.SUFFIXES:
.PHONY: all clean distbuild distclean

# **** for distribution client use

all: topformflat

topformflat: %: %.c
	$(CC) $(CFLAGS) -o $@ $<

clean:
	rm -f topformflat

# **** for building the distribution

distbuild: topformflat.c

distclean: clean
	rm -f topformflat.c

topformflat.c: %.c: %.lex
	$(FLEX) -o$@ $<