mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Build tools:
- clearbufbyte --> Bmemset - add libm to $(UTILLIBS) to fix building of mkpalette - add self-explanatory Makefile commands: dxutils, sdlutils, printdxutils, printsdlutils git-svn-id: https://svn.eduke32.com/eduke32@2597 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c35e1005b0
commit
5777eae026
2 changed files with 30 additions and 10 deletions
|
@ -58,7 +58,7 @@ ifneq ($(LUNATIC),0)
|
|||
OURCFLAGS+= -DLUNATIC_ENABLE
|
||||
endif
|
||||
|
||||
UTILLIBS= # -lpthread
|
||||
UTILLIBS= -lm # -lpthread
|
||||
UTILADDOBJS=
|
||||
ifneq (0,$(NEDMALLOC))
|
||||
UTILADDOBJS+= $(OBJ)/nedmalloc.$o
|
||||
|
@ -191,7 +191,7 @@ OURCFLAGS+= $(BUILDCFLAGS)
|
|||
|
||||
UTILOBJS=$(OBJ)/kextract.$o $(OBJ)/kgroup.$o $(OBJ)/transpal.$o $(OBJ)/wad2art.$o $(OBJ)/wad2map.$o $(OBJ)/kmd2tool.$o \
|
||||
$(OBJ)/md2tool.$o \
|
||||
$(OBJ)/generateicon.$o $(OBJ)/cacheinfo.$o $(OBJ)/enumdisplay.$o $(OBJ)/arttool.$o $(OBJ)/givedepth.$o $(OBJ)/mkpalette.$o \
|
||||
$(OBJ)/generateicon.$o $(OBJ)/cacheinfo.$o $(OBJ)/arttool.$o $(OBJ)/givedepth.$o $(OBJ)/mkpalette.$o \
|
||||
$(OBJ)/unpackssi.$o $(OBJ)/bsuite.$o \
|
||||
$(OBJ)/compat.$o $(OBJ)/compat_tools.$o $(OBJ)/pragmas.$o $(OBJ)/kplib.$o $(OBJ)/cache1d.$o
|
||||
UTILS=kextract$(EXESUFFIX) kgroup$(EXESUFFIX) transpal$(EXESUFFIX) wad2art$(EXESUFFIX) wad2map$(EXESUFFIX) kmd2tool$(EXESUFFIX) \
|
||||
|
@ -199,16 +199,32 @@ UTILS=kextract$(EXESUFFIX) kgroup$(EXESUFFIX) transpal$(EXESUFFIX) wad2art$(EXES
|
|||
generateicon$(EXESUFFIX) cacheinfo$(EXESUFFIX) arttool$(EXESUFFIX) givedepth$(EXESUFFIX) mkpalette$(EXESUFFIX) \
|
||||
unpackssi$(EXESUFFIX) bsuite$(EXESUFFIX)
|
||||
|
||||
DXUTILOBJS=$(OBJ)/enumdisplay.$o $(OBJ)/getdxdidf.$o
|
||||
DXUTILS=enumdisplay$(EXESUFFIX) getdxdidf$(EXESUFFIX)
|
||||
|
||||
SDLUTILOBJS=$(OBJ)/makesdlkeytrans.$o
|
||||
SDLUTILS=makesdlkeytrans$(EXESUFFIX)
|
||||
|
||||
# all: $(OBJ)/$(ENGINELIB) $(OBJ)/$(EDITORLIB)
|
||||
utils: start $(UTILS) finish
|
||||
utils: start $(UTILS) finish utilfinish
|
||||
dxutils: start $(DXUTILS) finish dxutilfinish
|
||||
sdlutils: start $(SDLUTILS) finish sdlutilfinish
|
||||
|
||||
start:
|
||||
$(BUILD_STARTED)
|
||||
|
||||
finish:
|
||||
$(BUILD_FINISHED)
|
||||
|
||||
utilfinish:
|
||||
@ls -l $(UTILS)
|
||||
|
||||
dxutilfinish:
|
||||
@ls -l $(DXUTILS)
|
||||
|
||||
sdlutilfinish:
|
||||
@ls -l $(SDLUTILS)
|
||||
|
||||
enginelib: $(OBJ)/$(ENGINELIB)
|
||||
$(OBJ)/$(ENGINELIB): $(ENGINEOBJS)
|
||||
$(BUILD_ECHOFLAGS)
|
||||
|
@ -349,13 +365,17 @@ clean:
|
|||
echo -n "" > $(OBJ)/keep.me
|
||||
|
||||
cleanutils:
|
||||
-rm -f $(UTILS) $(UTILOBJS) $(UTILADDOBJS) \
|
||||
enumdisplay$(EXESUFFIX) getdxdidf$(EXESUFFIX) makesdlkeytrans$(EXESUFFIX) \
|
||||
$(OBJ)/compat.$o $(OBJ)/getdxdidf.$o $(OBJ)/makesdlkeytrans.$o
|
||||
-rm -f $(UTILS) $(UTILOBJS) $(DXUTILS) $(DXUTILOBJS) $(SDLUTILS) $(SDLUTILOBJS) $(UTILADDOBJS)
|
||||
|
||||
printutils:
|
||||
echo "$(UTILS)"
|
||||
|
||||
printdxutils:
|
||||
echo "$(DXUTILS)"
|
||||
|
||||
printsdlutils:
|
||||
echo "$(SDLUTILS)"
|
||||
|
||||
veryclean: clean cleanutils
|
||||
-rm -f $(ENGINELIB) $(EDITORLIB)
|
||||
|
||||
|
|
|
@ -300,7 +300,7 @@ void parsescript(void)
|
|||
int spritenumstat, slen;
|
||||
char ch;
|
||||
|
||||
clearbufbyte(§spri[0], sizeof(short) * MAXSECTS * 8, 0xffffffff);
|
||||
Bmemset(sectspri, 0xffffffff, MAXSECTS*8*sizeof(short));
|
||||
|
||||
if (scriptname[0] == 0)
|
||||
{
|
||||
|
@ -1050,9 +1050,9 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
clearbufbyte(§or[0], sizeof(sectortype) * MAXSECTORS, 0);
|
||||
clearbufbyte(&wall[0], sizeof(walltype) * MAXWALLS, 0);
|
||||
clearbufbyte(&sprite[0], sizeof(spritetype) * MAXSPRITES, 0);
|
||||
Bmemset(sector, 0, MAXSECTORS*sizeof(sectortype));
|
||||
Bmemset(wall, 0, MAXWALLS*sizeof(walltype));
|
||||
Bmemset(sprite, 0, MAXSPRITES*sizeof(spritetype));
|
||||
for(i=0;i<MAXSECTORS;i++) sector[i].extra = -1;
|
||||
for(i=0;i<MAXWALLS;i++) wall[i].extra = -1;
|
||||
for(i=0;i<MAXSPRITES;i++) sprite[i].extra = -1;
|
||||
|
|
Loading…
Reference in a new issue