From cb1626518d9cd58bea7eb00b22ba533808064da8 Mon Sep 17 00:00:00 2001 From: Ivan Denisov Date: Sat, 3 Oct 2015 23:55:38 +0700 Subject: [PATCH] improved Makefile for C-loader --- BlackBox/_Linux_/Lin/Rsrc/Makefile | 32 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) 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 -- 2.29.2