mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-26 15:23:54 +01:00
make: Support QT applications
Need to have USE_PROJECT_LIB = true if a project lib is required
This commit is contained in:
parent
52a009fd80
commit
76be1a319f
2 changed files with 35 additions and 6 deletions
|
|
@ -22,6 +22,9 @@ $(LIBDIR):
|
|||
# $(AR) r $@ $*.o
|
||||
# $(RM) $*.o
|
||||
|
||||
moc_%.cpp: %.h
|
||||
$(MOC) -o $@ $<
|
||||
|
||||
lib%.so: %.o
|
||||
$(CC) $< $(LDFLAGS) -o $@
|
||||
|
||||
|
|
@ -37,7 +40,11 @@ $(TOPDIR)/include/%.h: $(TOPDIR)/include %.h
|
|||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
ifeq ($(USE_PROJECT_LIB),true)
|
||||
$(EXE): $(OBJ) $(LIB)
|
||||
else
|
||||
$(EXE): $(OBJ)
|
||||
endif
|
||||
$(CC) $(OBJ) $(LDFLAGS) -o $@
|
||||
|
||||
$(LIBS):
|
||||
|
|
@ -70,7 +77,7 @@ tmpclean:
|
|||
rm -rf *.tmp *.rep
|
||||
|
||||
objclean:
|
||||
rm -rf core .*.o *.o *.a *.so *.so.*
|
||||
rm -rf core .*.o *.o *.a *.so *.so.* $(MOC_CPP)
|
||||
|
||||
textclean: doneclean
|
||||
rm -rf $(TEXTCLEAN) \#*\# .kdbgrc.* .\#*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue