blob: 3c64f3a0770daf8186509b71fc9e6751bab9782d [file] [log] [blame]
# Minimal makefile for compilation with mingw64--almost certain to
# be replaced with something more flexible
LIBNTIRPC = libntirpc.a
SOURCES = \
auth_none.c \
portable.c \
rbtree.c \
rbtree_x.c \
rpc_ctx.c \
rpc_dplx_msg.c \
strlcat.c \
strlcpy.c \
svc.c \
svc_run.c \
xdr.c \
xdr_array.c \
xdr_float.c \
xdr_mem.c \
xdr_rec.c \
xdr_reference.c \
xdr_sizeof.c \
xdr_stdio.c
OBJECTS = $(SOURCES:%.c=%.o)
# Compiler flags
CC = x86_64-w64-mingw32-gcc
CFLAGS += -g3 -O0 -I../tirpc/ -D_REENTRANT
#LDFLAGS += -L$(CUNIT)/lib $(TIRPC)/src/.libs/libntirpc.a \
# -lcunit -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lpthread \
# -lc -lrt -lgssglue
# Targets
all : $(LIBNTIRPC)
$(LIBNTIRPC) : $(OBJECTS)
$(OBJECTS) : $(SOURCES)
clean:
$(RM) $(OBJECTS) $(LIBTIRPC)