Take out the trash
This commit is contained in:
parent
2f5bd49837
commit
800657cc2b
1 changed files with 2 additions and 8 deletions
10
PC/Makefile
10
PC/Makefile
|
@ -1,6 +1,5 @@
|
|||
CC := gcc
|
||||
CP := g++
|
||||
LN := g++
|
||||
LN := gcc
|
||||
ODIR := build
|
||||
SDIR := source
|
||||
IDIR := include
|
||||
|
@ -8,9 +7,7 @@ LDIR := lib
|
|||
CFLAGS := -I$(IDIR) -fms-extensions -O2 -Wall
|
||||
LFLAGS := $(LDIR)/vJoyInterface.lib -lws2_32 -lGdi32 -lgdiplus -static-libgcc
|
||||
CFILES := $(wildcard $(SDIR)/*.c)
|
||||
CPPFILES := $(wildcard $(SDIR)/*.cpp)
|
||||
OBJS := $(patsubst $(SDIR)/%.c, build/%.o, $(wildcard $(SDIR)/*.c))
|
||||
OBJS += $(patsubst $(SDIR)/%.cpp, build/%.o, $(wildcard $(SDIR)/*.cpp))
|
||||
OBJS := $(patsubst $(SDIR)/%.c, $(ODIR)/%.o, $(wildcard $(SDIR)/*.c))
|
||||
|
||||
PLATFORM = $(shell uname)
|
||||
|
||||
|
@ -32,9 +29,6 @@ $(TARGET): $(ODIR) $(OBJS)
|
|||
$(ODIR)/%.o: $(SDIR)/%.c
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
$(ODIR)/%.o: $(SDIR)/%.cpp
|
||||
$(CP) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
$(ODIR):
|
||||
@mkdir $@
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue