-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.win
48 lines (40 loc) · 912 Bytes
/
Makefile.win
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CC := gcc
SRC_FILES := \
src/sdb.c \
src/console.c \
src/transport.c \
src/transport_local.c \
src/transport_usb.c \
src/commandline.c \
src/sdb_client.c \
src/sockets.c \
src/services.c \
src/file_sync_client.c \
src/get_my_path_windows.c \
src/usb_windows.c \
src/utils.c \
src/usb_vendors.c \
src/socket_local_client.c \
src/sysdeps_win32.c
INCS := \
-I/mingw/include/ddk \
-Isrc/sdbwinapi \
-Isrc
DIRECT_INCS := \
-include src/TizenConfig.h
LIB_PATH := \
-Lprebuilt
LIBS := -lws2_32 \
prebuilt/SdbWinApi.a
CFLAGS := \
-O2 -DSDB_HOST=1 -Wall -Wno-unused-parameter \
-D_XOPEN_SOURCE -D_GNU_SOURCE
OBJDIR := bin
PREBUILTDIR := prebuilt
all : sdb
sdb : $(SRC_FILES)
rm -rf $(OBJDIR)
mkdir $(OBJDIR)
$(CC) $(CFLAGS) $(INCS) -o $(OBJDIR)/$@ $(SRC_FILES) $(DIRECT_INCS) $(LIB_PATH) $(LIBS)
cp $(PREBUILTDIR)/SdbWinApi.dll $(OBJDIR)
cp $(PREBUILTDIR)/SdbWinUsbApi.dll $(OBJDIR)