Skip to content

Commit

Permalink
Add support for Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
Crestwave committed May 18, 2019
1 parent 1337208 commit b2f26df
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ LDFLAGS += -lsocket
PRODFLAGS += -fast
endif

ifeq (haiku,$(OS))
OBJS= src/0.o src/bswap.o src/c.o src/getline.o src/mt.o src/p.o src/r.o \
src/k.o src/kc.o src/kx.o src/kg.o src/km.o src/kn.o src/ko.o src/ks.o \
src/v.o src/va.o src/vc.o src/vd.o src/vf.o src/vg.o src/vq.o
LDFLAGS = -lm -lnetwork
endif

# k_test versions of OBJS
OBJS_T= $(shell echo ${OBJS} | sed -e "s/\.o/.t.o/g")

Expand Down Expand Up @@ -167,6 +174,10 @@ ifeq (sunos,$(OS))
src/*.o: src/incs.h src/ts.h Makefile src/k.h
endif

ifeq (haiku,$(OS))
src/*.o: src/incs.h src/ts.h Makefile src/k.h
endif

src/0.c: src/0.h src/km.h src/v.h src/vf.h
src/c.c: src/c.h
src/getline.c: src/0.h src/getline.h
Expand Down
4 changes: 4 additions & 0 deletions src/k.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if !defined(WIN32)
#include <sys/select.h>
#endif

;
extern K KFIXED;
K cd(K a);
Expand Down

0 comments on commit b2f26df

Please sign in to comment.