mirror of http://shamusworld.gotdns.org/git/rln
43 lines
695 B
Makefile
43 lines
695 B
Makefile
# Makefile for Reboot's Linker for Jaguar
|
|
|
|
RM =/bin/rm -f
|
|
CC = gcc
|
|
PROGNAME = rln
|
|
LIBS =
|
|
|
|
# Figure out which system we're compiling for, and set the appropriate variables
|
|
|
|
OSTYPE := $(shell uname -a)
|
|
|
|
ifeq "$(findstring Msys,$(OSTYPE))" "Msys" # Win32
|
|
|
|
OSDEFINE := WIN32
|
|
|
|
else # ???
|
|
|
|
OSDEFINE := __GCCUNIX__
|
|
|
|
endif
|
|
|
|
|
|
# Change this to -DWIN32 for Windows :-)
|
|
#CFLAGS = -g -I. -D__GCCUNIX__
|
|
#CFLAGS = -g -I. -DWIN32
|
|
CFLAGS = -g -I. -D$(OSDEFINE) -O2
|
|
|
|
SRCS = rln.c
|
|
|
|
OBJS = rln.o
|
|
|
|
.c.o:
|
|
$(RM) $@
|
|
$(CROSS)$(CC) $(CFLAGS) -c $*.c
|
|
|
|
all: $(PROGNAME)
|
|
|
|
$(PROGNAME) : $(OBJS)
|
|
$(CROSS)$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS)
|
|
|
|
clean:
|
|
$(RM) $(OBJS) $(PROGNAME) $(PROGNAME).exe *~
|