File: Makefile

package info (click to toggle)
bls-standalone 0.20151231
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 280 kB
  • sloc: ansic: 1,913; python: 236; makefile: 63
file content (28 lines) | stat: -rw-r--r-- 583 bytes parent folder | download
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
CC = gcc
CCLD = $(CC)
CFLAGS = -Wall -O2 -g
CPPFLAGS =
INCLUDES =
LDFLAGS =

all: compile scan

compile: compile.o tags.o merge.o translate.o globals.o effwrite.o
	$(CCLD) $(CFLAGS) $(LDFLAGS) $^ -o $@

scan: scan.o globals.o effread.o
	$(CCLD) $(CFLAGS) $(LDFLAGS) $^ -o $@

%.o: %.c globals.h
	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $< -o $@

effread.o effwrite.o tags.o compile.o scan.o: eff.h
tags.o compile.o: tags.h
merge.o compile.o: merge.h
translate.o merge.o compile.o: statetable.h
translate.o compile.o: translate.h

clean:
	rm -f *.o scan compile

.PHONY: all clean