Makefile.master

v22.2b14/mudlib/Makefile.master · 321 B

From the archive beta.tar.gz

Download the archive   « Back to the archive contents

OBJ=interface.$(O)
SRC=interface.c

%ifdef GNU
OBJ=$(addprefix $(OBJDIR)/,$(subst .c,.o,$(SRC)))

$(OBJDIR)/%.o: %.c
	$(CC) -I$(OBJDIR) -I.. $(CFLAGS) -o $@ -c $<
%else
.c.$(O):
	$(CC) $(CFLAGS) -I.. -c $*.c
%endif

all: $(OBJ)
	ar rcu mudlib.$(A) $(OBJ)
	$(RANLIB) mudlib.$(A)

clean:
	-rm -f *.$(O)
	-rm -f mudlib.$(A)

Site Stats

Snippets: 1791
Codebases: 571