Consolidate linker rules (Avi Kivity)
[qemu/mini2440/sniper_sniper_test.git] / rules.mak
blobdd567802bd3f1c11ca32d7d4d0113403a5fb89c2
2 %.o: %.c
3 $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
5 %.o: %.S
6 $(CC) $(CPPFLAGS) -c -o $@ $<
8 %.o: %.m
9 $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
11 LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
13 %$(EXESUF): %.o
14 $(LINK)