# Makefile zur Erstellung der Enhanced GEM-Library mit dem GNU CC

CC = gcc
AR = gcc-ar
RM = rm -f

# Name der erzeugten Library-Datei
LIB_NAME = e_gem.olb

# GCC Compiler Optionen: K”nnen nach Bedarf eingestellt werden, wobei
# `-mshort' (int = short) immer eingestellt ist.
GCCOPTS = -O2 -fomit-frame-pointer

# GCC Compiler Optionen
CFLAGS = -mshort $(GCCOPTS) -D__CREATE_E_GEM_LIB__

OBJS = dial.o objc.o popup.o graf.o tool.o image.o scrap.o cookie.o \
	rc_ob_c.o vars.o

$(LIB_NAME): $(OBJS)
	$(AR) rc $(LIB_NAME) $(OBJS)

$(OBJS): e_gem.h

.PHONY:
	clean cleanall

CLEANFILES = $(OBJS) compile.err

CLEANALLFILES = $(CLEANFILES) $(LIB_NAME)

clean:
	$(RM) $(CLEANFILES)

cleanall:
	$(RM) $(CLEANALLFILES)
