X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=ginge.git;a=blobdiff_plain;f=loader%2FMakefile;fp=loader%2FMakefile;h=d50bcd538227276490bb387104fb11fe2737b718;hp=49cf11fa7f8fb9772bc7f8add1272e02a8bc790a;hb=c1ffd5ba04171a30be808e2c485e0dd6e25fa48a;hpb=6720e4e4ee1f5c815bc82dd8a5f276d7c5e71b24 diff --git a/loader/Makefile b/loader/Makefile index 49cf11f..d50bcd5 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -3,7 +3,7 @@ CROSS_COMPILE ?= arm-linux- CC = $(CROSS_COMPILE)gcc AS = $(CROSS_COMPILE)as CFLAGS += -Wall -ggdb -LDFLAGS += -static -ggdb +LDFLAGS += -static -ggdb -lpthread -lrt ifndef DEBUG CFLAGS += -O2 -fno-strict-aliasing LDFLAGS += -s -O2 @@ -22,12 +22,13 @@ endif vpath %.c = ../common/ +TARGET = ginge_sloader OBJ += loader.o loader_$(ARCH).o patches.o emu.o host_fb.o host_pnd.o -ginge_sloader: LDFLAGS += -Wl,-T script_$(ARCH).lds +$(TARGET): LDFLAGS += -Wl,-T script_$(ARCH).lds -ginge_sloader: $(OBJ) +$(TARGET): $(OBJ) $(CC) -o $@ $^ $(LDFLAGS) clean: - $(RM) loader $(OBJ) + $(RM) $(TARGET) $(OBJ)