-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add makefiles for building irpmonc with MinGW
Supports parallel building of the DLLs. For now without WMware vSockets. Signed-off-by: Tormod Volden <[email protected]>
- Loading branch information
1 parent
6cb5fd6
commit 8d6ad7c
Showing
9 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
dlls = \ | ||
libcallbackstreamdll \ | ||
libdparserdll \ | ||
libreqlistdll \ | ||
libsymbolsdll \ | ||
irpmondll | ||
|
||
main = irpmonc | ||
|
||
.PHONY: all clean $(dlls) $(main) | ||
|
||
all: $(dlls) | ||
$(MAKE) -C $(main) | ||
|
||
$(dlls): | ||
$(MAKE) -C $@ | ||
|
||
clean: | ||
$(foreach dir,$(dlls) $(main),$(MAKE) -C $(dir) $@ &&) : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
# for cross-building with MinGW | ||
CROSS = x86_64-w64-mingw32- | ||
INCLUDES = -I/usr/share/mingw-w64/include | ||
|
||
INCLUDES += -I../include -I../shared | ||
CPPFLAGS += $(INCLUDES) -O2 | ||
CFLAGS += $(INCLUDES) -O2 | ||
LDFLAGS += -municode | ||
|
||
CC = $(CROSS)gcc | ||
LD = $(CROSS)ld | ||
CXX = $(CROSS)g++ | ||
|
||
all: $(EXE) | ||
|
||
$(EXE): $(OBJS) | ||
$(CXX) -o $@ $(LDFLAGS) $^ | ||
|
||
clean: | ||
rm -f $(EXE) $(OBJS) $(DELOBJS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
CPPFLAGS += -DNOVSOCKETS | ||
|
||
LDFLAGS += \ | ||
-L../irpmondll -lirpmondll \ | ||
-L../libdparserdll -ldparser \ | ||
-L../libreqlistdll -lreqlist \ | ||
-L../libsymbolsdll -lsymbols \ | ||
-L../libcallbackstreamdll -lcallbackstream | ||
|
||
EXE = irpmonc | ||
OBJS = driver-settings.o irpmonc.o guid-api.o stop-event.o | ||
DELOBJS = $(EXE).exe | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = irpmondll.dll | ||
OBJS = driver-com.o main.o | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = libcallbackstream.dll | ||
OBJS = callback-stream.o | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = libdparser.dll | ||
OBJS = dparser.o | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = libreqlist.dll | ||
OBJS = reqlist.o | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = libsymbols.dll | ||
OBJS = symbols.o | ||
|
||
include ../common.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
LDFLAGS += -shared | ||
|
||
EXE = libvsock.dll | ||
OBJS = libvsock.o | ||
|
||
include ../common.mk |