Make building more sane, fix malloc.h from being included.

This commit is contained in:
Marco Cawthorne 2020-05-30 22:04:09 +02:00
parent eb147b0e01
commit fe1c84d71c
2 changed files with 3 additions and 4 deletions

4
Makefile Normal file → Executable file
View file

@ -10,7 +10,6 @@ BASE_CFLAGS=-Dstricmp=strcasecmp
CFLAGS=$(BASE_CFLAGS)
LDFLAGS=-ldl -lm
SHLIBEXT=so
SHLIBCFLAGS=-fPIC
SHLIBLDFLAGS=-shared
@ -30,11 +29,12 @@ GAME_OBJS = \
a_game.o a_items.o a_cmds.o a_radio.o a_menu.o \
cgf_sfx_glass.o a_doorkick.o
game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
../game.so : $(GAME_OBJS)
$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(GAME_OBJS)
clean:
-rm -f $(GAME_OBJS)
-rm ../game.so
depend:
gcc -MM $(GAME_OBJS:.o=.c)

3
acesrc/acebot_compress.c Normal file → Executable file
View file

@ -31,7 +31,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <malloc.h>
#define N 4096 /* size of ring buffer */
#define F 18 /* upper limit for match_length */
@ -300,4 +299,4 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS;
}
*/
*/