File: Makefile.upstream

package info (click to toggle)
inform 6.31.1%2Bdfsg-2
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster, stretch
  • size: 10,628 kB
  • ctags: 4,052
  • sloc: ansic: 38,751; sh: 3,475; lisp: 1,024; makefile: 252
file content (16 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SRC := $(wildcard *.c)
OBJ := $(patsubst %.c,%.o,$(SRC))

.PHONY: clean all

all: inform-6.31

$(OBJ): %.o: %.c
	gcc $(CFLAGS) -DLINUX -DInclude_Directory="\"/usr/share/inform-6.31/include,/usr/share/inform-6.31/modules\"" \
	  -Wall -Wextra -Wno-uninitialized $^ -c -o $@

inform-6.31: $(OBJ)
	gcc $(CFLAGS) $^ -o $@

clean:
	rm -f *.o inform-6.31