# sbl
#

## ROOT = $(HOME)/EOTA/eota/kernel
## NEWLIB = $(HOME)/EOTA/libc/newlib-1.8.1/eota/newlib
## CFLAGS = -O2 -DEOTA -I. -I$(NEWLIB)/targ-include -I$(NEWLIB)/libc/include \
	-I$(ROOT)/POSIX/libc/others

CC = gcc
AR = ar
RANLIB = ranlib
RM = rm -f
CFLAGS = -I. -Iimage

OBJS = data.o event.o gbasic.o gdra.o message.o parts.o proc.o file.o \
gchar.o menu.o panel.o pointer.o window.o

all: libsbl.a

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

libsbl.a: $(OBJS)
	$(AR) rv libsbl.a $(OBJS)
	$(RANLIB) libsbl.a

clean:
	$(RM) $(OBJS)
	$(RM) libsbl.a
