Makefile.master

tmi2/v21.7a10/packages/Makefile.master · 303 B

From the archive tmi2_mudos_v1.tar.gz

Download the archive   « Back to the archive contents

%include "packages/packages"

%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 packages.a $(OBJ)
	ranlib packages.a

clean:
	-rm -f *.o
	-rm -f packages.a

Site Stats

Snippets: 1791
Codebases: 571