Fix jpeg loader for grayscale images.
[gfxprim.git] / app.mk
blob9b31c14c2431a08165ab06bc4f9ab0aa674540e3
1 ifndef APPS
2 $(error APPS not defined, fix your library Makefile)
3 endif
5 LDFLAGS+=-lpng -ljpeg
7 all: $(APPS)
9 CLEAN+=$(APPS)
11 %: %.o
12 ifdef VERBOSE
13 $(CC) $(CFLAGS) $(LDFLAGS) -Wl,--start-group $(LDLIBS) $^ -Wl,--end-group -o $@
14 else
15 @echo "LD $@"
16 @$(CC) $(CFLAGS) $(LDFLAGS) -Wl,--start-group $(LDLIBS) $^ -Wl,--end-group -o $@
17 endif