-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.win32
27 lines (21 loc) · 1.88 KB
/
Makefile.win32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
CC = gcc
RM = rm
RESC = windres
USRSCTP_CFLAGS = -DSCTP_SIMPLE_ALLOCATOR -DSCTP_PROCESS_LEVEL_LOCKS -D__Userspace__ -D__Userspace_os_Windows -DINET -DINET6 -D_LIB -Isrc/usrsctp
CFLAGS = -mwindows -O2 -D_FILE_OFFSET_BITS=64 -DUSE_STAT_PATCH -DHAVE_TIMESPEC -DHAVE_TIMEZONE -DEDFS_DEFAULT_HOST=\"discovery.gyrogears.com:4848\" -DEDFS_MULTITHREADED -DWITH_SCTP -DWITH_USRSCTP -DEDFS_MULTITHREADED -Isrc/usrsctp $(USRSCTP_CFLAGS)
LIBS = -lws2_32 -liphlpapi -lwinmm -lole32 -loleaut32 -luuid -lshlwapi -lcredui -ldokanfuse1
BUILDFLAGS= -o edfs_dokan
UI_SRC = src/ui/win32/htmlwindow.c
USRSCTP_SRC = src/usrsctp/user_environment.c src/usrsctp/user_mbuf.c src/usrsctp/user_recv_thread.c src/usrsctp/user_socket.c src/usrsctp/netinet/sctputil.c src/usrsctp/netinet/sctp_asconf.c src/usrsctp/netinet/sctp_auth.c src/usrsctp/netinet/sctp_bsd_addr.c src/usrsctp/netinet/sctp_callout.c src/usrsctp/netinet/sctp_cc_functions.c src/usrsctp/netinet/sctp_crc32.c src/usrsctp/netinet/sctp_indata.c src/usrsctp/netinet/sctp_input.c src/usrsctp/netinet/sctp_output.c src/usrsctp/netinet/sctp_pcb.c src/usrsctp/netinet/sctp_peeloff.c src/usrsctp/netinet/sctp_sha1.c src/usrsctp/netinet/sctp_ss_functions.c src/usrsctp/netinet/sctp_sysctl.c src/usrsctp/netinet/sctp_timer.c src/usrsctp/netinet/sctp_userspace.c src/usrsctp/netinet/sctp_usrreq.c src/usrsctp/netinet6/sctp6_usrreq.c
DUKTAPE_SRC = src/duktape.c src/edfs_js.c
SRC = $(UI_SRC) $(USRSCTP_SRC) $(DUKTAPE_SRC) src/sha256.c src/xxhash.c src/base64.c src/base32.c src/parson.c src/edd25519.c src/avl.c src/chacha.c src/log.c src/sha3.c src/curve25519.c src/sort.c src/blockchain.c src/edfs_key_data.c src/edwork.c src/edfs_core.c src/edfs_fuse.c
OBJS = $(SRC: .c=.o) resource.o
edfs: ${OBJS}
${CC} ${BUILDFLAGS} ${CFLAGS} ${OBJS} ${LIBS}
%.o:
${CC} ${CFLAGS} -c $<
resource.o: resource.rc
${RESC} resource.rc -o coff -o resource.o
.PHONY: clean
clean:
@echo all cleaned up!