CC = gcc
CFLAGS = -c -Os -funsigned-char -I ..
AR = ar
SOURCES = newfunc.c bitstrm.c cpu.c dll_load.c dpmi.c drivehnd.c errorhnd.c filehand.c fpu.c keyboard.c memory.c mixed.c string.c textdisp.c time.c timer.c
OBJS = newfunc.o bitstrm.o cpu.o dll_load.o dpmi.o drivehnd.o errorhnd.o filehand.o fpu.o keyboard.o memory.o mixed.o string.o textdisp.o time.o timer.o

newfunc.a:
	$(CC) $(CFLAGS) $(SOURCES)
	$(AR) rcs newfunc.a $(OBJS)

all: newfunc.a
