# HG changeset patch # User Mike Becker # Date 1739658089 -3600 # Node ID a53fa82bbdcf223b0cb3dfee1bdcf68d9335d9a1 # Parent c41ab60fd27a7367d36baaa4abbff078b66ac38a upgrade uwproj and add lib target and README diff -r c41ab60fd27a -r a53fa82bbdcf .hgignore --- a/.hgignore Sat Feb 15 22:56:16 2025 +0100 +++ b/.hgignore Sat Feb 15 23:21:29 2025 +0100 @@ -4,6 +4,7 @@ \.rej$ \.conflict\~$ ^build/.*$ +^dist/.*$ ^nbproject/.*$ .idea/ ^config.mk$ diff -r c41ab60fd27a -r a53fa82bbdcf Makefile --- a/Makefile Sat Feb 15 22:56:16 2025 +0100 +++ b/Makefile Sat Feb 15 23:21:29 2025 +0100 @@ -29,7 +29,14 @@ include config.mk all: build build/c2html - + +lib: dist/lib dist/include build \ + build/c2html.o build/highlighter.o src/c2html.h src/highlighter.h + $(COPYFILE) LICENSE dist/ + $(COPYFILE) src/c2html.h dist/include/ + $(COPYFILE) src/highlighter.h dist/include/ + $(AR) dist/lib/libc2html.a build/c2html.o build/highlighter.o + build/c2html: build/frontend.o build/highlighter.o build/c2html.o $(CC) -o $@ $(LDFLAGS) $^ @@ -44,9 +51,15 @@ build: $(MKDIR) $@ - + +dist/lib: + $(MKDIR) $@ + +dist/include: + $(MKDIR) $@ + check: all cd test && $(MAKE) -s clean: - $(RMDIR) build + $(RMDIR) build dist diff -r c41ab60fd27a -r a53fa82bbdcf README --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README Sat Feb 15 23:21:29 2025 +0100 @@ -0,0 +1,27 @@ +c2html - Formats source code using HTML. + +Build Instructions: + + 1. Download and install UCX (https://ucx.sourceforge.io) + 2. Run ./configure --release + 3. Run make (produces c2html binary in build directory) + 4. Or run make lib (produces include dir and static lib in dist directory) + +Usage of binary file: + c2html [Options] FILE + + Options: + -h Prints help message + -j Highlight Java instead of C source code + -o Output file (stdout, if not specified) + -H
Prepend header file + -F