Code: Select all
- makefile
- src
- test.c
- include
- test.h
Code: Select all
- makefile
- src
- test.c
- include
- test.h
- build
- test.o
Code: Select all
- makefile
- src
- test.c
- test.o
- include
- test.h
Here's my current makefile:
Code: Select all
TARGET_LIB := test.a
LIBDIR :=
INCDIR := include
SRCDIR := src
BUILD := build
CFILES := $(foreach dir,$(SRCDIR),$(notdir $(wildcard $(dir)/*.c)))
OBJS := $(addprefix $(SRCDIR)/,$(CFILES:%.c=%.o))
#OBJS := $(CFILES:%.c=%.o)
CFLAGS = -O2 -G0 -Wall -std=gnu99 -DTARGET_PSP -Wno-unknown-pragmas -I.
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
LIBS = -lm
PSPSDK =$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak