home *** CD-ROM | disk | FTP | other *** search
- # elib - first exec library
-
- PREDIR=RAM:
- JUNKDIR=RAM:
- PRE=elib.pre
- PRESRC=preelib.c
-
- CFLAGS=+I$(PREDIR)$(PRE) -T
-
- ASRC=rtag.asm funky.asm libface.asm
- SRC=elib.c
- OBJ=elib.o rtag.o funky.o libface.o
- INCL=elib.h
-
- ARCH= $(ASRC) $(SRC) $(INCL) $(PRESRC) elib t.c liblink.asm makefile ReadMe
-
- elib.arc:
- arc a elib.arc $(ARCH)
-
- all: $(PREDIR)$(PRE) LIBS:mylib.library mytest
-
- LIBS:mylib.library: elib
- copy elib libs:mylib.library
-
- elib: $(OBJ)
- ln $(OBJ) -lc -o $@
-
- mytest: t.o liblink.o
- ln -w t.o liblink.o -lc -o $@
-
- # prepare pre-include (dump files)
- $(PREDIR)$(PRE): $(PRE)
- copy $(PRE) $(PREDIR)
-
- $(PRE): $(PRESRC) $(INCL)
- $(C)cc -A -o $(JUNKDIR)pre_garbage.o +H$(PRE) $(PRESRC)
-
- $(OBJ): $(PRE)
-
- tags: $(SRC) elib.h
- ctags $(SRC) elib.h
-