mirror of
https://github.com/zeldaret/ph
synced 2026-05-24 15:20:55 -04:00
23 lines
275 B
Makefile
23 lines
275 B
Makefile
CC := gcc
|
|
CFLAGS := -g
|
|
|
|
ifneq ($(DEBUG),1)
|
|
CFLAGS += -O2 -DNDEBUG
|
|
endif
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
OUTFILE := compress.exe
|
|
else
|
|
OUTFILE := compress
|
|
endif
|
|
|
|
.PHONY: all clean
|
|
|
|
all: $(OUTFILE)
|
|
|
|
clean:
|
|
rm -f $(OUTFILE)
|
|
|
|
$(OUTFILE): main.c
|
|
$(CC) $(CFLAGS) -o $(OUTFILE) main.c
|