2024-07-18 03:54:12 -04:00
|
|
|
$(BINDIR)/$(NAME).dll: $(BINDIR)/ $(OBJDIR)/ $(OBJS)
|
2024-07-17 21:38:27 -04:00
|
|
|
echo -e "\e[92mLinking binary $@\e[0m"
|
|
|
|
$(CXX) $(OBJS) $(BASE_LDFLAGS) $($(CONFIG)_LDFLAGS) -o $@
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.c
|
|
|
|
echo -e "\e[94mCompiling C source file $< ($@)\e[0m"
|
|
|
|
$(CC) -c $(BASE_CCFLAGS) $($(CONFIG)_CCFLAGS) $< -o $@
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.cpp
|
|
|
|
echo -e "\e[94mCompiling C++ source file $< ($@)\e[0m"
|
|
|
|
$(CC) -c $(BASE_CXXFLAGS) $($(CONFIG)_CXXFLAGS) $< -o $@
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.S
|
|
|
|
echo -e "\e[94mAssembling $< ($@)\e[0m"
|
|
|
|
$(CC) -xassembler-with-cpp -c $(BASE_CCFLAGS) $($(CONFIG)_CCFLAGS) $< -o $@
|
|
|
|
|
|
|
|
$(OBJDIR)/%.o: %.rc
|
|
|
|
echo -e "\e[94mCompiling Windows resource script $<\e[0m"
|
|
|
|
$(WINDRES) -Iinclude $< -o $@
|