aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
blob: dd567802bd3f1c11ca32d7d4d0113403a5fb89c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

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

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

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

LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)

%$(EXESUF): %.o
	$(LINK)