-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile-x32.mk
executable file
·58 lines (44 loc) · 1.21 KB
/
Makefile-x32.mk
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
48
49
50
51
52
53
54
55
56
57
BITNESS=32
include Common.mk
# Built on both Windows and Linux
# Note - order is important
DIRS =
ifeq ($(UNAME_S),Windows)
DIRS += \
UsbdmSystem_DLL \
Usbdm_DLL \
UsbdmJni_DLL \
UsbdmWx_DLL \
UsbdmDsc_DLL \
BdmInterface_DLL \
DeviceDatabase_DLL \
FlashImage_DLL \
UsbdmTcl_DLL \
Programmer_DLL \
GdiDialogue_DLL \
Legacy_DLL \
GDI_DLL \
MyCustomAction
endif
export TARGET_BINDIR TARGET_LIBDIR BUILDDIR_SUFFIX VSUFFIX
export BITNESS TARGET_BINDIR TARGET_LIBDIR BUILDDIR_SUFFIX
BUILD_DIRS = $(DIRS:%=build-%)
CLEAN_DIRS = $(DIRS:%=clean-%)
all: addExternalFiles $(BUILD_DIRS)
clean: cleanTargetFiles $(CLEAN_DIRS)
cleanTargetFiles:
$(RMDIR) $(DUMMY_CHILD)/$(TARGET_LIBDIR)
$(RMDIR) $(DUMMY_CHILD)/$(TARGET_BINDIR)
# Copy external DLLs
addExternalFiles:
ifeq ($(UNAME_S),Windows)
$(MKDIR) $(DUMMY_CHILD)/$(TARGET_LIBDIR)
$(MKDIR) $(DUMMY_CHILD)/$(TARGET_BINDIR)
endif
$(BUILD_DIRS):
$(MAKE) -C $(@:build-%=%) all -f Makefile-x32.mk
$(CLEAN_DIRS):
$(MAKE) -C $(@:clean-%=%) clean -f Makefile-x32.mk
.PHONY: $(CLEAN_DIRS)
.PHONY: $(BUILD_DIRS)
.PHONY: clean all cleanTargetFiles addExternalFiles