WIP : New build target : Emscripten.

This commit is contained in:
Jean-François DEL NERO
2025-01-01 22:05:12 +01:00
parent 4ac075335e
commit cdf930baee
6 changed files with 54 additions and 0 deletions
+9
View File
@@ -68,6 +68,14 @@ ifeq ($(TARGET), Darwin)
EXEC = libusbhxcfe.dylib
endif
ifeq ($(TARGET), Emscripten)
CFLAGS +=
LDFLAGS += -lc -lm -ldl
CC = emcc
AR = emar
EXEC=libusbhxcfe.a
endif
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
EXEC = libusbhxcfe.dll
endif
@@ -113,6 +121,7 @@ ftdi_libftdimode.o : ftdi.c ftdi.h ftd2xx.h WinTypes.h
$(CC) -o $@ -c $< $(CFLAGS) -DFTDILIB
clean:
rm -rf *.a
rm -rf *.o
mrproper: clean