Skip to content

Commit

Permalink
Add necessary files for the new release.
Browse files Browse the repository at this point in the history
Create a Makefile that builds the release from the root directory of the 
project tree.

Update the COPYRIGHT with new authors.

Create a proper INSTALL file with instructions for installing the 
deamon.

Update the src Makefile to something a bit more modern and regular.
  • Loading branch information
gvnn3 committed Oct 12, 2010
1 parent 88222c2 commit f4d1372
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 8 deletions.
1 change: 1 addition & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ The following copyright notice applies to all files which compose the
PTPd. This notice applies as if the text was explicitly included each
file.

Copyright (c) 2009-2010 George V. Neville-Neil, Steven Kreuzer, Martin Burnicki
Copyright (c) 2005-2008 Kendall Correll, Aidan Williams

Permission to use, copy, modify, and/or distribute this software for any
Expand Down
34 changes: 34 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
PTP Daemon Installation Instructions

11 October 2010

George V. Neville-Neil

The PTP Daemon is known to work on FreeBSD and Linux systems.

*) Building on FreeBSD

1) cd into the src/ directory
2) Un comment the #-DBSD_INTERFACE_FUNCTIONS option:

Turn this:
CFLAGS = -Wall #-DBSD_INTERFACE_FUNCTIONS

into this:
CFLAGS = -Wall -DBSD_INTERFACE_FUNCTIONS

3) Run "make"
4) Read the manual page.
5) Test it in place: ./ptpd -your -arguments -here
6) Run "make install"

*) Building on Linux

Follow the steps above except for step number 2.

The daemon may work on other Posix based systems but this is not
guaranteed. Patches and fixes are welcome on the source forge page

http://ptpd.sf.net

or via mail to gnn@freebsd.org
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Root Makefile for ptpd, used for cutting releases

VERSION = ptpd-1.1.0

release:
(cd src; make clean)
mkdir $(VERSION)
(cd $(VERSION); ln -s ../src .; ln -s ../doc .; ln -s ../tools .; ln -s ../extras .)
tar cvzf $(VERSION).tar.gz -L --exclude .o --exclude Doxygen --exclude .svn --exclude .dep $(VERSION) COPYRIGHT ChangeLog Makefile README RELEASE_NOTES
18 changes: 10 additions & 8 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,31 @@ CFLAGS = -Wall #-DBSD_INTERFACE_FUNCTIONS
#CPPFLAGS = -DPTPD_DBG -DPTPD_NO_DAEMON

PROG = ptpd
OBJ = ptpd.o arith.o bmc.o probe.o protocol.o \
dep/msg.o dep/net.o dep/servo.o dep/startup.o dep/sys.o dep/timer.o
HDR = ptpd.h constants.h datatypes.h \
SRCS = ptpd.c arith.c bmc.c probe.c protocol.c \
dep/msg.c dep/net.c dep/servo.c dep/startup.c dep/sys.c dep/timer.c
OBJS = ${SRCS:S/.c/.o/g}

HDRS = ptpd.h constants.h datatypes.h \
dep/ptpd_dep.h dep/constants_dep.h dep/datatypes_dep.h

CSCOPE = cscope
GTAGS = gtags
DOXYGEN = doxygen

TAGFILES = GPATH GRTAGS GSYMS GTAGS cscope.in.out cscope.out cscope.po.out

.c.o:
$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

all: $(PROG)

$(PROG): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ)

$(OBJ): $(HDR)
$(PROG): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS)

tags:
$(CSCOPE) -R -q -b
$(GTAGS)
$(DOXYGEN) Doxyfile

clean:
$(RM) $(PROG) $(OBJ)
$(RM) $(PROG) $(OBJS) $(TAGFILES) make.out

0 comments on commit f4d1372

Please sign in to comment.