Skip to content

Commit

Permalink
macOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
weimzh committed Aug 19, 2018
1 parent d1a3374 commit 816b34a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions dlls/makefile_osx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# HPB_bot makefile for Mac OS X
#
# created: 12/16/2000 botman ([email protected])
#

MOD_DIR = ~/SteamLibrary/steamapps/common/Half-Life/valve

CC = gcc
CPP = g++

BASEFLAGS = -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp

CPPFLAGS = ${BASEFLAGS} -m32 -O2 -w -I../engine -I../common -I../pm_shared

OBJ = bot.o bot_client.o bot_combat.o bot_navigate.o bot_start.o \
dll.o engine.o h_export.o linkfunc.o util.o waypoint.o

hpbbot.dylib: ${OBJ}
${CPP} -m32 -fPIC -shared -o $@ ${OBJ} -ldl
cp -f hpbbot.dylib ${MOD_DIR}/dlls

clean:
-rm -f *.o
-rm -f *.dylib

%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@

%.o: %.c
${CC} ${CPPFLAGS} -c $< -o $@

0 comments on commit 816b34a

Please sign in to comment.