mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-21 06:05:55 -04:00
Added/updated makefiles to build all sample files using one "make".
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
SUBDIRS = example
|
||||
|
||||
.PHONY: subdirs $(SUBDIRS)
|
||||
|
||||
subdirs: $(SUBDIRS)
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@
|
||||
|
||||
CLEANDIRS = $(SUBDIRS:%=clean-%)
|
||||
|
||||
clean: $(CLEANDIRS)
|
||||
$(CLEANDIRS):
|
||||
$(MAKE) -C $(@:clean-%=%) clean
|
||||
|
||||
.PHONY: subdirs $(INSTALLDIRS)
|
||||
.PHONY: clean
|
||||
@@ -10,6 +10,7 @@ CXX = g++
|
||||
LINK = ld
|
||||
endif
|
||||
|
||||
RM = rm
|
||||
CFLAGS = -Wall -g
|
||||
LDFLAGS =
|
||||
|
||||
@@ -23,3 +24,6 @@ DllLoader.exe: $(OBJ)
|
||||
|
||||
%.o: %.cc
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(OBJ) DllLoader.exe
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
SUBDIRS = DllLoader SampleDLL
|
||||
|
||||
.PHONY: subdirs $(SUBDIRS)
|
||||
|
||||
subdirs: $(SUBDIRS)
|
||||
|
||||
$(SUBDIRS):
|
||||
$(MAKE) -C $@
|
||||
|
||||
CLEANDIRS = $(SUBDIRS:%=clean-%)
|
||||
|
||||
clean: $(CLEANDIRS)
|
||||
$(CLEANDIRS):
|
||||
$(MAKE) -C $(@:clean-%=%) clean
|
||||
|
||||
.PHONY: subdirs $(INSTALLDIRS)
|
||||
.PHONY: clean
|
||||
@@ -10,6 +10,7 @@ CXX = g++
|
||||
LINK = ld
|
||||
endif
|
||||
|
||||
RM = rm
|
||||
CFLAGS = -Wall -g -DSAMPLEDLL_EXPORTS
|
||||
LDFLAGS = -shared
|
||||
|
||||
@@ -20,3 +21,6 @@ SampleDLL.dll: $(OBJ)
|
||||
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
$(RM) -rf $(OBJ) SampleDLL.dll
|
||||
|
||||
Reference in New Issue
Block a user