aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/Makefile
blob: 3aa441a94ba95344e72cedeafbf155377fefcaae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# MIT License, Copyright (c) 2020 Marvin Borner

COBJS = psf.o \
	png.o \
	gfx.o \
	gui.o \
	msg.o \
	widgets.o

CFLAGS = $(CFLAGS_DEFAULT) -I$(LIBS) -I$(LIBS)/libc/inc/ -pie -fPIE -fPIC -DUSER

all: libgui

%.o: %.c
	@$(CC) -c $(CFLAGS) $< -o $@

libgui: $(COBJS)
	@mkdir -p $(BUILD)
	@$(AR) rcs $(BUILD)/libgui.a $+

clean:
	@find . -name "*.o" -type f -delete