1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-03-01 17:35:54 +00:00

cmake: ldeether shouldn't link full maiko lib. (#267)

In the old build system, `ldeether` is built as follows:

```
$(OSARCHDIR)ldeether :  $(SRCDIR)ldeether.c $(DLPIFILES)
    $(CC) $(CFLAGS) -I$(INCDIR) $(SRCDIR)ldeether.c $(DLPIFILES) $(LDEETHERLDFLAGS) -o $(OSARCHDIR)ldeether
```

Instead of linking all of Maiko, it just links in the `src/dlpi.c`
object file.
This commit is contained in:
Bruce Mitchener
2021-01-22 04:18:57 +07:00
committed by GitHub
parent bf15105d3c
commit a0dec4045e

View File

@@ -432,10 +432,9 @@ TARGET_COMPILE_DEFINITIONS(lde PUBLIC ${MAIKO_DEFINITIONS})
TARGET_INCLUDE_DIRECTORIES(lde PUBLIC inc)
TARGET_LINK_LIBRARIES(lde X11::X11)
ADD_EXECUTABLE(ldeether src/ldeether.c)
ADD_EXECUTABLE(ldeether src/ldeether.c src/dlpi.c)
TARGET_COMPILE_DEFINITIONS(ldeether PUBLIC ${MAIKO_DEFINITIONS})
TARGET_INCLUDE_DIRECTORIES(ldeether PUBLIC inc)
TARGET_LINK_LIBRARIES(ldeether maiko)
ADD_EXECUTABLE(ldex src/main.c vdate.c)
TARGET_LINK_LIBRARIES(ldex maiko)