tcploader addded
[svpe-wii.git] / tcploader / pc / Makefile
blobf47fa2b2f41e4051f6ca28d3e6043b811e7e767a
1 .PHONY = all clean win32 linux
3 OUTPUT = sendelf
4 CC = gcc
6 OBJS = main.o
7 CFLAGS = -Wall -pedantic -g
9 WIN_OUTPUT = sendelf.exe
10 WIN_CC = i686-mingw32-gcc
12 WIN_OBJS = main.wo
13 WIN_CFLAGS = -Wall -pedantic -g
14 WIN_LDFLAGS = -lwsock32
16 all: win32 linux
18 win32: $(WIN_OUTPUT)
20 linux: $(OUTPUT)
22 clean:
23 rm -f $(OBJS) $(WIN_OBJS) $(OUTPUT) $(WIN_OUTPUT)
25 $(OUTPUT): $(OBJS)
26 gcc -o $@ $<
28 $(WIN_OUTPUT): $(WIN_OBJS)
29 $(WIN_CC) -o $@ $< $(WIN_LDFLAGS)
31 %.wo: %.c
32 $(WIN_CC) $(WIN_CFLAGS) -c -o $@ $<
34 %.o: %.c
35 gcc $(CFLAGS) -c -o $@ $<