forked from hkc/cc-stuff
16 lines
508 B
Makefile
16 lines
508 B
Makefile
CPPFLAGS += -Idependencies -Idependencies/mongoose
|
|
LDLIBS += -lm
|
|
|
|
all: img2cpi cpi2png wsvpn
|
|
|
|
img2cpi: img2cpi.c cc-common.o dependencies/stb/stb_image.o dependencies/stb/stb_image_resize2.o
|
|
$(CC) $(LDFLAGS) $^ $(LDLIBS) -o "$@"
|
|
|
|
dependencies/stb/%.o: dependencies/stb/%.h
|
|
$(CC) -DSTB_IMAGE_IMPLEMENTATION -DSTB_IMAGE_RESIZE_IMPLEMENTATION -DSTB_IMAGE_WRITE_IMPLEMENTATION -x c $^ -c -o "$@"
|
|
|
|
wsvpn: wsvpn.o dependencies/mongoose/mongoose.o
|
|
$(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o "$@"
|
|
|
|
.PHONY: all
|