Newer
Older
Scratch / sillybot / src / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 725 bytes Scratch
# $Id: Makefile,v 1.1 2002/10/17 11:41:38 reddawg Exp $


#Compiler
GCC = gcc 
G++ = gcc

#Linker
LD = ld

#Binary File Name
BINARY = sillybot

#Delete Program
REMOVE = rm -f

#Objects
OBJS = main.o socket.o

# Link the kernel statically with fixed text+data address @1M
$(BINARY) : $(OBJS)
	$(GCC)  -o $@ $(OBJS) 

# Compile the source files
.cc.o:
	$(G++)  -Wall -fomit-frame-pointer -O -I../include -c -o $@ $<
 
.cc.s:
	$(G++)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
 
.c.o:
	$(GCC)  -Wall -O -I../include  -c -o $@ $<
 
.c.s:
	$(GCC)  -Wall -fomit-frame-pointer -O -I../include -S -o $@ $<
 
.S.o:
	$(GCC)  -Wall -fomit-frame-pointer -c -o $@ $<
 
# Clean up the junk
clean:
	$(REMOVE) $(OBJS) $(BINARY)