forked from I2P_Developers/i2p.i2p
26 lines
360 B
Makefile
26 lines
360 B
Makefile
#
|
|
# This Makefile contains instructions common to all platforms
|
|
#
|
|
|
|
#
|
|
# Build rules
|
|
#
|
|
|
|
all: clean depend libsam
|
|
|
|
depend:
|
|
$(CC) $(CFLAGS) -MM $(SRCDIR)/*.c > .depend
|
|
|
|
$(OBJDIR)/%.o: $(SRCDIR)/%.c
|
|
$(CC) $(CFLAGS) -o $@ -c $<
|
|
|
|
libsam: $(OBJS)
|
|
$(AR) rcs $(LIBDIR)/libsam.a $(OBJS)
|
|
|
|
#
|
|
# Cleanup rules
|
|
#
|
|
|
|
clean:
|
|
-$(RM) -f $(LIBDIR)/libsam.a $(OBJDIR)/*.o .depend
|