mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-18 08:22:36 +00:00
55e299e4b3
SVN r286 (trunk)
44 lines
624 B
Makefile
44 lines
624 B
Makefile
ifeq (Windows_NT,$(OS))
|
|
WIN=1
|
|
WINCMD=1
|
|
endif
|
|
ifeq (msys,$(OSTYPE))
|
|
WIN=1
|
|
WINCMD=0
|
|
endif
|
|
|
|
ifeq (1,$(WIN))
|
|
EXE = lemon.exe
|
|
CFLAGS = $(LOC) -D_WIN32 -Os -Wall -Wno-implicit -fomit-frame-pointer
|
|
else
|
|
EXE = lemon
|
|
CFLAGS = -Os -Wall -Wno-implicit -fomit-frame-pointer
|
|
endif
|
|
|
|
CCDV = @../../ccdv
|
|
CC = gcc
|
|
LDFLAGS = -s
|
|
|
|
OBJS = lemon.o
|
|
|
|
all: $(EXE)
|
|
|
|
$(EXE): $(OBJS)
|
|
$(CCDV) $(CC) $(LDFLAGS) -o $(EXE) $(OBJS)
|
|
|
|
%.o: %.c
|
|
$(CCDV) $(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
ifeq (1,$(WINCMD))
|
|
-del /q /f $(EXE) 2>nul
|
|
-del /q /f *.o 2>nul
|
|
else
|
|
rm -f $(EXE)
|
|
rm -f *.o
|
|
endif
|
|
|
|
lemon.o: lemon.c lempar.c
|
|
|