chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Builds a working plugin.
[chiark-tcl.git]
/
base
/
troglodyte-Makefile
diff --git
a/base/troglodyte-Makefile
b/base/troglodyte-Makefile
index 2ae36d57338b4e5101ad7d1ed9799a38845a0d5c..765d5e45997366f09822f31b3f8e60aa728d88ba 100644
(file)
--- a/
base/troglodyte-Makefile
+++ b/
base/troglodyte-Makefile
@@
-1,20
+1,19
@@
-OBJS= forwarder.o \
- main.o \
- misc.o \
- intr-sigio.o \
- bget/bget.o
+OBJS= hbytes.o \
+ enum.o
-HDRS= misc.h \
- forwarder.h \
- intr.h
+HDRS= hbytes.h
-CFLAGS= -g -Wall
+TARGETS= hbytes.so
-fvpn: $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+CFLAGS= -g -Wall -O
+
+all: $(TARGETS)
+
+hbytes.so: $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared $(OBJS) $(LDLIBS)
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
clean:
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
clean:
- rm -f $(OBJS) *~ ./#*#
+ rm -f $(OBJS)
$(TARGETS)
*~ ./#*#