-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 938 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
APP=example
CC=gcc
CFLAGS=-O0 -ggdb -Wall -Wstrict-prototypes -Iinclude `pkg-config --cflags sdl`
SLIBS=`pkg-config --libs sdl`
OBJS=\
src/framebuffer.o \
src/framebuffer_gen.o \
src/image.o \
src/input.o \
src/mikrogui.o \
src/platforms/generic_sdl.o \
src/progressbar.o \
src/rect.o \
src/resources.o \
src/text.o \
src/widget.o
all: $(OBJS) examples
# $(CC) -o $(APP) $(OBJS) $(SLIBS)
examples: framebuffer rect progressbar
framebuffer: examples/framebuffer_example.o
$(CC) -o examples/framebuffer_example $(OBJS) examples/framebuffer_example.o $(SLIBS)
rect: examples/rect_example.o
$(CC) -o examples/rect_example $(OBJS) examples/rect_example.o $(SLIBS)
progressbar: examples/progressbar_example.o
$(CC) -o examples/progressbar_example $(OBJS) examples/progressbar_example.o $(SLIBS)
clean:
rm -f $(APP) include/*_gen.[ch] src/*.o src/*_gen.[ch] src/platforms/*.o
rm -f examples/*_example
rebuild: clean all