PROJECT=libterm
CC=g++
LD=ld
CFLAGS=-Wwrite-strings -fpermissive -fno-rtti -fno-exceptions -fno-unwind-tables

make:
	$(CC) $(CFLAGS) -c term.c
	$(CC) $(CFLAGS) -c screen_modes.c
	$(CC) $(CFLAGS) -c term_io.c
	$(CC) $(CFLAGS) -c term_gui.c
	$(LD) -r term.o screen_modes.o term_io.o term_gui.o -o $(PROJECT).o

clean:
	rm *.o