mirror of
https://github.com/shchmue/Lockpick_RCM.git
synced 2024-12-05 02:04:16 +01:00
17 lines
338 B
Makefile
17 lines
338 B
Makefile
|
NATIVE_CC ?= gcc
|
||
|
|
||
|
ifeq (, $(shell which $(NATIVE_CC) 2>/dev/null))
|
||
|
$(error "Native GCC is missing. Please install it first. If it's path is custom, set it with export NATIVE_CC=<path to native gcc toolchain>")
|
||
|
endif
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
all: lz77
|
||
|
@echo > /dev/null
|
||
|
|
||
|
clean:
|
||
|
@rm -f lz77
|
||
|
|
||
|
lz77: lz.c lz77.c
|
||
|
@$(NATIVE_CC) -o $@ lz.c lz77.c
|