Skip to content

Commit bf64fd1

Browse files
committed
initial commit. just messing around
0 parents  commit bf64fd1

File tree

10 files changed

+1648
-0
lines changed

10 files changed

+1648
-0
lines changed

README

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
PYNTK
3+
4+
The goal of this project is to provide Python tools and libraries for use with
5+
the 93k.
6+

ci_interface/Makefile

+219
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
HP83000_ROOT=/opt/hp93000/soc
2+
HP83000_REVISION=5.4.3
3+
HP83000_ROOT=/opt/hp93000/soc
4+
HP83000_REVISION=5.4.3
5+
6+
PYTHON_ROOT=/home/m/opt
7+
#
8+
# Agilent 93000 Makefile
9+
#
10+
HP83000_ROOT=/opt/hp93000/soc
11+
HP83000_REVISION=5.4.3
12+
HP83000_ROOT=/opt/hp93000/soc
13+
HP83000_REVISION=5.4.3
14+
# Avoid influences from user's shell startup file
15+
ENV=
16+
17+
# Name of makefile
18+
MAKEFILE=Makefile
19+
20+
# Base for target name
21+
NAME=libcifset
22+
23+
# destination base path for libraries and programs
24+
DEST=.
25+
26+
#
27+
#
28+
GENERATED_HEADERS=
29+
30+
# $(SRCS) is the list of source files used.
31+
# $(SRCS) is given as argument to makedepend to create the dependency information
32+
SRCS=$(filter-out ~%, $(wildcard *.c *.C *.cpp))
33+
34+
# List of object files to be created
35+
# Usually, OBJS contains one file for each file in SRCS
36+
# Assuming that SRCS contains only .c, .C, .cpp, .l and .y files,
37+
# OBJS can be obtained from SRCS as follows.
38+
# But it is also possible to define OBJS explicitely if you wish
39+
# to have object files in OBJS whose sources are not in SRCS.
40+
# Since SRCS is only used for makedepend, these object files
41+
# would also be built, but makedepend would create no dependency
42+
# rules for them.
43+
OBJS_L=$(SRCS:.l=.o)
44+
OBJS_Y=$(OBJS_L:.y=.o)
45+
OBJS_C=$(OBJS_Y:.C=.o)
46+
OBJS_CPP=$(OBJS_C:.cpp=.o)
47+
OBJS=$(sort $(OBJS_CPP:.c=.o))
48+
49+
# archive libraries to be linked to target
50+
LIBS=
51+
52+
# shared libraries to be linked to target
53+
SH_LIBS= -Wl,-rpath,:
54+
55+
# system libraries to be linked to target, like -lm -lX11 etc.
56+
SYSLIBS=-lm -lpython2.7 -L$(PYTHON_ROOT)/lib -lpthread -lutil -ldl
57+
58+
# External object files required to build target
59+
EXTERNAL_OBJS=
60+
61+
# dependency directories to build libraries and objects
62+
ifeq ($(HP83000_ROOT),/opt/hp93000/soc)
63+
BUILD_DIRS=
64+
else
65+
BUILD_DIRS=
66+
endif
67+
#
68+
# Compilers to be used.
69+
# If the scripts CC_hp83000 and CCP_hp83000 are used, they may
70+
# have options to enable support of purify, purecover, insure or dmalloc.
71+
# These options are specified as purify=[yes|no|<debug tool config file>].
72+
# The default configuration files for the debug tools are located in $(HP83000_ROOT)/com/lbin
73+
CC=/usr/bin/gcc
74+
CXX=/usr/bin/g++
75+
76+
# Compile flags to be used
77+
CFLAGS=-fpic -I $(PYTHON_ROOT)/include -I $(HP83000_ROOT)/pws/lib -I$(HP83000_ROOT)/prod_com/include -I$(HP83000_ROOT)/com/include -I$(HP83000_ROOT)/mix_sgnl/include -I $(HP83000_ROOT)/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT=\"/opt/hp93000/soc\" -DHP83000_REVISION=\"5.4.3\" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -Wall
78+
CFLAGS_DEBUG=-g -fpic -I $(PYTHON_ROOT)/include -I $(HP83000_ROOT)/pws/lib -I$(HP83000_ROOT)/prod_com/include -I$(HP83000_ROOT)/com/include -I$(HP83000_ROOT)/mix_sgnl/include -I $(HP83000_ROOT)/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT=\"/opt/hp93000/soc\" -DHP83000_REVISION=\"5.4.3\" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -Wall
79+
CXXFLAGS=-I $(HP83000_ROOT)/pws/lib -I$(HP83000_ROOT)/prod_com/include -I$(HP83000_ROOT)/com/include -I$(HP83000_ROOT)/mix_sgnl/include -I $(HP83000_ROOT)/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT=\"/opt/hp93000/soc\" -DHP83000_REVISION=\"5.4.3\" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -DStd=std -DUSING_NAMESPACE_STD=using\ namespace\ std\; -Wall
80+
CXXFLAGS_DEBUG=-g -I $(HP83000_ROOT)/pws/lib -I$(HP83000_ROOT)/prod_com/include -I$(HP83000_ROOT)/com/include -I$(HP83000_ROOT)/mix_sgnl/include -I $(HP83000_ROOT)/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT=\"/opt/hp93000/soc\" -DHP83000_REVISION=\"5.4.3\" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -DStd=std -DUSING_NAMESPACE_STD=using\ namespace\ std\; -Wall
81+
82+
LD=/usr/bin/gcc
83+
LDFLAGS=-L/usr/X11R6/lib
84+
85+
YACC=/usr/bin/bison
86+
YFLAGS=-d
87+
88+
LEX=/usr/bin/flex
89+
LFLAGS=
90+
91+
PATH=/bin:/usr/bin:/usr/atria/bin:/opt/aCC/bin:/opt/langtools/bin
92+
SHELL=/bin/ksh
93+
94+
# Files to remove in make clean or make clobber
95+
CLEAN_FILES=$(OBJS) core *~
96+
HP83000_ROOT=/opt/hp93000/soc
97+
HP83000_REVISION=5.4.3
98+
CLOBBER_FILES=$(SHARED_LIBRARY) $(CI) Makefile.bak makefile.Template
99+
100+
CI_BIN_SOURCE="${HP83000_ROOT}/prod_env/bin"
101+
CI_TARGET = .
102+
CI = Ci
103+
104+
GEN_CI_SCRIPT = $(HP83000_ROOT)/prod_env/lbin/gen_ci_script_ddd
105+
GEN_CI_SCRIPT_GDB = $(HP83000_ROOT)/prod_env/lbin/gen_ci_script_gdb
106+
GEN_CI_SCRIPT_DDD = $(HP83000_ROOT)/prod_env/lbin/gen_ci_script_ddd
107+
108+
SHARED_LIBRARY=$(DEST)/$(NAME).so
109+
110+
all: $(SHARED_LIBRARY)
111+
@rm -f $(CI_TARGET)/$(CI).d
112+
@rm -f $(CI_TARGET)/$(CI)
113+
@ln -s $(CI_BIN_SOURCE)/ci_function $(CI_TARGET)/$(CI)
114+
115+
debug symbol:
116+
$(MAKE) -f $(MAKEFILE) debugddd
117+
118+
debugxdb:
119+
$(MAKE) -f $(MAKEFILE) CFLAGS="$(CFLAGS_DEBUG)" CXXFLAGS="$(CXXFLAGS_DEBUG)" $(SHARED_LIBRARY)
120+
@rm -f $(CI_TARGET)/$(CI).d
121+
@ln -s $(CI_BIN_SOURCE)/ci_function.d $(CI_TARGET)/$(CI).d
122+
@rm -f $(CI_TARGET)/$(CI)
123+
@$(GEN_CI_SCRIPT_GDB)
124+
@chmod +x $(CI_TARGET)/$(CI)
125+
126+
debuggdb:
127+
$(MAKE) -f $(MAKEFILE) CFLAGS="$(CFLAGS_DEBUG)" CXXFLAGS="$(CXXFLAGS_DEBUG)" $(SHARED_LIBRARY)
128+
@rm -f $(CI_TARGET)/$(CI).d
129+
@ln -s $(CI_BIN_SOURCE)/ci_function.d $(CI_TARGET)/$(CI).d
130+
@rm -f $(CI_TARGET)/$(CI)
131+
@$(GEN_CI_SCRIPT_GDB)
132+
@chmod +x $(CI_TARGET)/$(CI)
133+
134+
debugddd:
135+
$(MAKE) -f $(MAKEFILE) CFLAGS="$(CFLAGS_DEBUG)" CXXFLAGS="$(CXXFLAGS_DEBUG)" $(SHARED_LIBRARY)
136+
@rm -f $(CI_TARGET)/$(CI).d
137+
@ln -s $(CI_BIN_SOURCE)/ci_function.d $(CI_TARGET)/$(CI).d
138+
@rm -f $(CI_TARGET)/$(CI)
139+
@$(GEN_CI_SCRIPT_DDD)
140+
@chmod +x $(CI_TARGET)/$(CI)
141+
142+
SRCS=$(filter-out ~%, $(wildcard *.c *.C *.cpp))
143+
144+
HP83000_ROOT=/opt/hp93000/soc
145+
HP83000_REVISION=5.4.3
146+
HP83000_ROOT=/opt/hp93000/soc
147+
HP83000_REVISION=5.4.3
148+
# Build shared library
149+
$(SHARED_LIBRARY): $(OBJS) $(BUILD_DIRS) $(EXTERNAL_OBJS) $(LIBS)
150+
$(LD) -shared -Wl,-Bdynamic $(LDFLAGS) $(SH_LIBS) \
151+
$(OBJS) $(EXTERNAL_OBJS) $(LIBS) $(SYSLIBS) \
152+
-o $(SHARED_LIBRARY)
153+
154+
HP83000_ROOT=/opt/hp93000/soc
155+
HP83000_REVISION=5.4.3
156+
HP83000_ROOT=/opt/hp93000/soc
157+
HP83000_REVISION=5.4.3
158+
159+
clean:
160+
rm -f $(CLEAN_FILES)
161+
162+
clobber:
163+
rm -f $(CLEAN_FILES) $(CLOBBER_FILES)
164+
165+
# create 'makefile' out of 'Makefile' with added dependencies
166+
# The command `echo $(CC) | cut -d ' ' -f1` below returns the first word
167+
# of $(CC). $(CC) might contain addidional options (e.g. for purify support).
168+
# makedepend needs to know, which compiler is used, because if a script like
169+
# CC_hp83000 or CCP_hp83000 is used, makedepend needs to know, which options
170+
# (include paths etc.) are set in the compiler script. makedepend then
171+
# calls the compile script with the option -queryCompileFlags and expects the
172+
# script to output the the options it uses for the compiler to stdout.
173+
# Also add rules for building $(BUILD_DIRS) that create libraries and
174+
# objects that are linked into the executable.
175+
depend:
176+
@$(HP83000_ROOT)/com/lbin/makedepend -f $(MAKEFILE) \
177+
-c `echo $(CC) | cut -d ' ' -f1` \
178+
-C `echo $(CXX) | cut -d ' ' -f1` \
179+
-- -CFLAGS $(CFLAGS) \
180+
-CXXFLAGS $(CXXFLAGS) \
181+
-BUILD_DIRS $(BUILD_DIRS) \
182+
-- \
183+
$(SRCS)
184+
185+
# install nothing (target used for compatibility only)
186+
install:
187+
@echo "nothing to be installed"
188+
189+
$(OBJS): $(GENERATED_HEADERS)
190+
MTMS =
191+
MTTS =
192+
# DO NOT DELETE THIS LINE -- make depend depends on it.
193+
194+
# AUTOMATICALLY GENERATED WITH "make depend"
195+
# DO NOT CHANGE
196+
197+
# Dependencies of files generated with /usr/bin/g++
198+
# use CXXFLAGS: -I /opt/hp93000/soc/pws/lib -I/opt/hp93000/soc/prod_com/include -I/opt/hp93000/soc/com/include -I/opt/hp93000/soc/mix_sgnl/include -I /opt/hp93000/soc/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT="/opt/hp93000/soc" -DHP83000_REVISION="5.4.3" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -DStd=std -DUSING_NAMESPACE_STD=using namespace std; -Wall
199+
###
200+
201+
# Dependencies of files generated with /usr/bin/gcc:
202+
# use CFLAGS: -fpic -I /opt/hp93000/soc/pws/lib -I/opt/hp93000/soc/prod_com/include -I/opt/hp93000/soc/com/include -I/opt/hp93000/soc/mix_sgnl/include -I /opt/hp93000/soc/pws/include -O -D_EXTENDED_ANSI -DHP83000_ROOT="/opt/hp93000/soc" -DHP83000_REVISION="5.4.3" -DWIZARD_ESCAN=0 -DNDEBUG -DHP93_SOC -DHP83_F330 -DWIZARD_NYI=1 -DX11R5 -Didnumber=domainname -DOS_LINUX -D_GNU_SOURCE -DHP_UX_10 -DJDK_13 -Wall
203+
###
204+
fn_templ.o: fn_templ.c /opt/hp93000/soc/pws/lib/tpi_c.h \
205+
/opt/hp93000/soc/com/include/machine.h \
206+
/opt/hp93000/soc/com/include/largefile.h \
207+
/opt/hp93000/soc/com/include/luna_endian.h \
208+
/opt/hp93000/soc/mix_sgnl/include/adiUserI.h \
209+
/opt/hp93000/soc/mix_sgnl/include/adi.h \
210+
/opt/hp93000/soc/com/include/ci_types.h \
211+
/opt/hp93000/soc/prod_com/include/libcicpi.h
212+
pyproc.o: pyproc.c /opt/hp93000/soc/pws/lib/tpi_c.h \
213+
/opt/hp93000/soc/com/include/machine.h \
214+
/opt/hp93000/soc/com/include/largefile.h \
215+
/opt/hp93000/soc/com/include/luna_endian.h \
216+
/opt/hp93000/soc/mix_sgnl/include/adiUserI.h \
217+
/opt/hp93000/soc/mix_sgnl/include/adi.h \
218+
/opt/hp93000/soc/com/include/ci_types.h \
219+
/opt/hp93000/soc/prod_com/include/libcicpi.h

0 commit comments

Comments
 (0)