summaryrefslogtreecommitdiff
path: root/makefile
blob: ab06a68292ab1f73cc7a83b7afc5251cb3d43375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Make sure everything compiles.
#
src := genx.c char-props.c

CC := gcc
CFLAGS := -W -Wall

# Compile.
#
.PHONY: all
all: $(src:.c=.o)

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

# Clean.
#
.PHONY: clean
clean:
	rm -f $(src:.c=.o)