Fix macOs build

This commit is contained in:
Elkan Roelen 2018-09-11 15:05:19 +02:00 committed by GitHub
parent 95bbb9900b
commit 0043977566
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -360,10 +360,10 @@ client:
$(MAKE) release/quake2
ifeq ($(YQ2_OSTYPE), Darwin)
build/client/%.o : %.m
build/client/%.o : %.c
@echo "===> CC $<"
${Q}mkdir -p $(@D)
${Q}$(CC) $(OSX_ARCH) -x objective-c -c $< -o $@
${Q}$(CC) $(OSX_ARCH) -x objective-c -c $(CFLAGS) $(SDLCFLAGS) $(ZIPCFLAGS) $(INCLUDE) $< -o $@
else
build/client/%.o: %.c
@echo "===> CC $<"