]> Shamusworld >> Repos - rln/blob - makefile
Revbump for last commit. :-P
[rln] / makefile
1 #
2 # Makefile for Reboot's Linker for Jaguar
3 #
4 RM =/bin/rm -f
5 CC = gcc
6 PROGNAME = rln
7 LIBS =
8 #
9 # Figure out which system we're compiling for, and set the appropriate
10 # variables
11 #
12 SYSTYPE    := __GCCUNIX__
13
14 ifneq "$(CROSS)" ""
15 SYSTYPE    := WIN32
16 else
17 OSTYPE := $(shell uname -o)
18 ifeq "$(findstring Msys,$(OSTYPE))" "Msys"
19 SYSTYPE    := WIN32
20 endif
21 endif
22
23 CFLAGS = -g -I. -D$(SYSTYPE) -O2 -Wno-format
24 SRCS = rln.c 
25 OBJS = rln.o
26
27 .c.o: 
28         $(RM) $@ 
29         $(CROSS)$(CC) $(CFLAGS) -c $*.c 
30
31 all: $(PROGNAME) 
32
33 $(PROGNAME) : $(OBJS) 
34         $(CROSS)$(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) 
35
36 clean: 
37         $(RM) $(OBJS) $(PROGNAME) $(PROGNAME).exe *~ 
38