Makefile.master

v22.2b14/packages/Makefile.master · 319 B

From the archive beta.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