libui/examples/histogram/GNUmakefile

30 lines
407 B
Makefile
Raw Normal View History

2015-10-13 15:32:55 -05:00
# 2 september 2015
OUT = histogram
ifeq ($(OS),windows)
linkto = ../../out/new.dll
CC = i686-w64-mingw32-gcc
2015-10-13 15:47:46 -05:00
OUT = histogram.exe
2015-10-13 15:32:55 -05:00
else
ifeq ($(OS),darwin)
linkto = ../../out/new.dylib
else
linkto = ../../out/new.so
endif
endif
CFILES = \
main.c
OFILES = $(CFILES:%.c=%.o)
controlgallery: $(OFILES)
$(CC) -g -o $(OUT) $(OFILES) $(linkto)
%.o: %.c
$(CC) -c -g -o $@ $<
clean:
rm -f $(OUT) $(OFILES)