From: Ivan Denisov Date: Sat, 3 Oct 2015 16:55:38 +0000 (+0700) Subject: improved Makefile for C-loader X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=cb1626518d9cd58bea7eb00b22ba533808064da8;p=bbcp.git improved Makefile for C-loader --- diff --git a/BlackBox/_Linux_/Lin/Rsrc/Makefile b/BlackBox/_Linux_/Lin/Rsrc/Makefile index 938607b..384663b 100644 --- a/BlackBox/_Linux_/Lin/Rsrc/Makefile +++ b/BlackBox/_Linux_/Lin/Rsrc/Makefile @@ -1,17 +1,15 @@ -# Make File for building the Linux BlackBox Loader -# Runs on Linux ELF - -# for 32-bit -CFLAGS = -O2 - -# for 64-bit -# CFLAGS = -m32 -O2 - -exe.img: blackbox.o - gcc $(CFLAGS) -o exe.img blackbox.o -ldl -lm - -blackbox.o: - gcc $(CFLAGS) -c blackbox.c - -clean: - rm exe.img blackbox.o +# Make File for building the Linux BlackBox Loader +# Runs on Linux ELF + +CFLAGS = -m32 -O2 + +all: exe.img + +exe.img: blackbox.o + ${CC} $(CFLAGS) -o exe.img blackbox.o -ldl -lm + +blackbox.o: blackbox.c + ${CC} $(CFLAGS) -c blackbox.c + +clean: + rm -f exe.img blackbox.o