aboutsummaryrefslogtreecommitdiff
path: root/libs/libgui/Makefile
blob: e04b703a67022c36bf1fdc5b1f8226347063c08d (plain) (blame)
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
# MIT License, Copyright (c) 2020 Marvin Borner

COBJS = psf.o \
	bmp.o \
	png.o \
	gfx.o \
	gui.o \
	msg.o
CC = ccache ../../cross/opt/bin/i686-elf-gcc
LD = ccache ../../cross/opt/bin/i686-elf-ld
AR = ccache ../../cross/opt/bin/i686-elf-ar

CFLAGS = $(CFLAGS_DEFAULT) -I../ -I../libc/inc/ -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