Skip to content

Commit

Permalink
Merge pull request #8 from mac-can/development
Browse files Browse the repository at this point in the history
Release Candidate 1 for Version 2.0
  • Loading branch information
mac-can authored Aug 27, 2024
2 parents 973607d + a7619ea commit fc4b8ec
Show file tree
Hide file tree
Showing 18 changed files with 1,443 additions and 138 deletions.
26 changes: 15 additions & 11 deletions Library/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ current_OS := $(patsubst CYGWIN%,Cygwin,$(current_OS))
current_OS := $(patsubst MINGW%,MinGW,$(current_OS))
current_OS := $(patsubst MSYS%,MinGW,$(current_OS))

MAJOR = 1
MAJOR = 2
MINOR = 0
PATCH = 1
PATCH = 0

ifeq ($(PATCH),0)
VERSION = $(MAJOR).$(MINOR)
Expand All @@ -66,7 +66,8 @@ SOURCE_DIR = $(HOME_DIR)/Sources
SERIAL_DIR = $(SOURCE_DIR)

OBJECTS = $(OUTDIR)/slcan.o $(OUTDIR)/serial.o \
$(OUTDIR)/buffer.o $(OUTDIR)/queue.o $(OUTDIR)/logger.o
$(OUTDIR)/buffer.o $(OUTDIR)/queue.o \
$(OUTDIR)/timer.o $(OUTDIR)/logger.o


ifeq ($(current_OS),Darwin) # macOS - libSLCAN.dylib
Expand Down Expand Up @@ -189,27 +190,27 @@ incdir:
$(CP) $(SERIAL_DIR)/serial_attr.h $(INCDIR)

clean:
$(RM) $(TARGET) $(STATIC) $(OUTDIR)/*.o $(OUTDIR)/*.d
@-$(RM) $(TARGET) $(STATIC) $(OUTDIR)/*.o $(OUTDIR)/*.d

pristine:
ifeq ($(current_OS),Darwin)
$(RM) *.dylib *.a $(OUTDIR)/*.o $(OUTDIR)/*.d
$(RM) $(BINDIR)/*.dylib $(BINDIR)/*.a
@-$(RM) *.dylib *.a $(OUTDIR)/*.o $(OUTDIR)/*.d
@-$(RM) $(BINDIR)/*.dylib $(BINDIR)/*.a
endif
ifeq ($(current_OS),$(filter $(current_OS),Linux Cygwin))
$(RM) *.so *.a $(OUTDIR)/*.o $(OUTDIR)/*.d
$(RM) $(BINDIR)/*.so $(BINDIR)/*.a
@-$(RM) *.so *.a $(OUTDIR)/*.o $(OUTDIR)/*.d
@-$(RM) $(BINDIR)/*.so $(BINDIR)/*.a
endif

install:
@echo "Copying library file..."
$(CP) $(TARGET) $(INSTALL)
ifeq ($(current_OS),Darwin)
$(RM) $(INSTALL)/$(LIBRARY).dylib ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(LIBRARY).dylib
@-$(RM) $(INSTALL)/$(LIBRARY).dylib ; $(LN) $(INSTALL)/$(TARGET) $(INSTALL)/$(LIBRARY).dylib
endif
ifeq ($(current_OS),$(filter $(current_OS),Linux Cygwin))
$(RM) $(INSTALL)/$(SONAME) ; ln -s $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
$(RM) $(INSTALL)/$(LIBRARY).so ; ln -s $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
@-$(RM) $(INSTALL)/$(SONAME) ; ln -s $(INSTALL)/$(TARGET) $(INSTALL)/$(SONAME)
@-$(RM) $(INSTALL)/$(LIBRARY).so ; ln -s $(INSTALL)/$(SONAME) $(INSTALL)/$(LIBRARY).so
endif


Expand All @@ -226,6 +227,9 @@ $(OUTDIR)/buffer.o: $(SERIAL_DIR)/buffer.c $(SERIAL_DIR)/buffer_p.c
$(OUTDIR)/queue.o: $(SERIAL_DIR)/queue.c $(SERIAL_DIR)/queue_p.c
$(CC) $(CFLAGS) -MMD -MF $*.d -o $@ -c $<

$(OUTDIR)/timer.o: $(SERIAL_DIR)/timer.c $(SERIAL_DIR)/timer_p.c
$(CC) $(CFLAGS) -MMD -MF $*.d -o $@ -c $<

$(OUTDIR)/logger.o: $(SERIAL_DIR)/logger.c $(SERIAL_DIR)/logger_p.c
$(CC) $(CFLAGS) -MMD -MF $*.d -o $@ -c $<

Expand Down
Binary file modified Library/uvslcan.rc
Binary file not shown.
11 changes: 11 additions & 0 deletions Library/uvslcan.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@
<ClInclude Include="..\Sources\serial.h" />
<ClInclude Include="..\Sources\serial_attr.h" />
<ClInclude Include="..\Sources\slcan.h" />
<ClInclude Include="..\Sources\timer.h" />
<ClInclude Include=".\Sources\framework.h" />
<ClInclude Include=".\Sources\pch.h" />
<ClInclude Include=".\resource.h" />
Expand Down Expand Up @@ -331,6 +332,16 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_dll|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_lib|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include="..\Sources\timer_w.c">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_dll|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_lib|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_dll|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_lib|Win32'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_dll|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release_lib|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_dll|x64'">NotUsing</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_lib|x64'">NotUsing</PrecompiledHeader>
</ClCompile>
<ClCompile Include=".\Sources\dllmain.cpp" />
<ClCompile Include=".\Sources\pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug_dll|x64'">Create</PrecompiledHeader>
Expand Down
6 changes: 6 additions & 0 deletions Library/uvslcan.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
<ClInclude Include=".\resource.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\Sources\timer.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include=".\Sources\dllmain.cpp">
Expand All @@ -68,6 +71,9 @@
<ClCompile Include="..\Sources\slcan.c">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\Sources\timer_w.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="uvslcan.rc">
Expand Down
Loading

0 comments on commit fc4b8ec

Please sign in to comment.